@Test
public void setImageUrl_requestsImage() {

    mNIV.setLayoutParams(
            new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
    mNIV.setImageUrl("http://foo", mMockImageLoader);
    assertEquals("http://foo", mMockImageLoader.lastRequestUrl);
    assertEquals(0, mMockImageLoader.lastMaxWidth);
    assertEquals(0, mMockImageLoader.lastMaxHeight);
}