ImageLoader { public boolean isCached(String requestUrl, int maxWidth, int maxHeight) { throwIfNotOnMainThread(); String cacheKey = getCacheKey(requestUrl, maxWidth, maxHeight); return mCache.getBitmap(cacheKey) != null; } ImageLoader(RequestQueue queue, ImageCache imageCache); static ImageListener getImageListener(final ImageView view,
            final int defaultImageResId, final int errorImageResId); boolean isCached(String requestUrl, int maxWidth, int maxHeight); ImageContainer get(String requestUrl, final ImageListener listener); ImageContainer get(String requestUrl, ImageListener imageListener,
            int maxWidth, int maxHeight); ImageContainer get(String requestUrl, ImageListener imageListener,
            int maxWidth, int maxHeight, ScaleType scaleType); void setBatchedResponseDelay(int newBatchedResponseDelayMs);  }
@Test public void isCachedChecksCache() throws Exception { when(mImageCache.getBitmap(anyString())).thenReturn(null); Assert.assertFalse(mImageLoader.isCached("http: }