title: How to test MVP presenter method which has database operation
body: <p>I have implement unit test with MVP Architecture and every thing went well<br>
  with <code>Junit4</code> and <code>Mokito</code> </p>
  
  <p>But my problem my that when i need to test methods which has database operation </p>
  
  <p>i'm facing two issue </p>
  
  <p>1-getting null pointer Exception when using <code>@RunWith(MockitoJUnitRunner.class)
  </code> and mocking the Presenter and View </p>
  
  <p>2-using <code>InstrumentationTestCase</code> and MockContext i'm able to open the data base with no error but when i call verify on database related method the test success but in the coverage i see that this method in the presenter is not covered</p>
  
  <p>Thanks</p>