title: How do I set a property on a mocked object using Mockito?
body: <p>I have a scenario where I have to set a property of a mocked object as follows:</p>
  
  <pre><code>SlingHttpRequest slingHttpRequest= mock(SlingHttpRequest);
  slingHttpRequest.setAttribute("search", someObject);
  </code></pre>
  
  <p>When I try to print this attribute I get <code>null</code>.  How do I set this property?</p>