@Test
public void getWithCacheHit() throws Exception {

    Bitmap bitmap = Bitmap.createBitmap(1, 1, null);
    ImageLoader.ImageListener listener = mock(ImageLoader.ImageListener.class);
    when(mImageCache.getBitmap(anyString())).thenReturn(bitmap);
    ImageLoader.ImageContainer ic = mImageLoader.get("http://foo", listener);
    Assert.assertSame(bitmap, ic.getBitmap());
    verify(listener).onResponse(ic, true);
}