title: Android Mockito java.lang.AssertionError:
body: <p>I just started using Mockito so I can perform unit testing on my android app. I'm not understand why I'm getting the following error:</p>
  
  <p>Can anyone please tell me what am I missing here?</p>
  
  <pre><code>java.lang.AssertionError: 
  Expected :http://a/h/url
  Actual   :null
    &lt;Click to see difference&gt;
  
  
  
  
  at org.junit.Assert.fail(Assert.java:88)
  at org.junit.Assert.failNotEquals(Assert.java:834)
  at org.junit.Assert.assertEquals(Assert.java:118)
  </code></pre>
  
  <p>Test class</p>
  
  <pre><code>@RunWith(MockitoJUnitRunner.class)
  public class NewsItemWrapperTest {
  
      public static final String T_URL ="http://a/th/url";
      public static final String H_URL ="http://a/h/url";
  
  
      @Mock
      NewsItem newsItem;
  
      @Mock
      NewsItemWrapper newsItemWrapper;
  
      @Before
      public void setUp() throws Exception {
          //initMocks(this);
          newsItemWrapper = new NewsItemWrapper(newsItem);
      }
  
      @Test
      public void testGetThumbImageUrl() throws Exception {
  
  
  
          assertEquals(T_URL, newsItemWrapper.getThumbNailImage());
      }
  
      @Test
      public void testGetHeroImageUrl() throws Exception {
          assertEquals(H_URL, newsItemWrapper.getHImage());
      }
  }
  </code></pre>