title: Mocking Apache HTTPClient using Mockito
body: <p>I'm trying to mock Apache HttpClient Interface in order to mock one of its methods mentioned below to return a stubbed JSON object in response.</p>
  
  <pre><code>HttpResponse response = defaultHttpClient.execute(postRequest); 
  </code></pre>
  
  <p>Could somebody be able to suggest how to achieve this with some sample code? Your help would be greatly appreciated. </p>
  
  <p>Thanks </p>