ImageService { static void get(@NonNull final Context context, @NonNull final List<String> urls, @NonNull final ImageServiceListener imageServiceListener) { initialize(context); CacheService.initialize(context); get(urls, imageServiceListener); }  @Nullable static Bitmap asBitmap(@NonNull final DownloadResponse downloadResponse, final int requestedWidth); @Nullable static Bitmap byteArrayToBitmap(@NonNull final byte[] bytes, final int requestedWidth); static long getMemBytes(@NonNull Options options); static int calculateInSampleSize(final int nativeWidth, int requestedWidth);  }
@Test public void get_shouldInitializeCaches() throws Exception { assertThat(CacheService.getBitmapLruCache()).isNull(); assertThat(CacheService.getDiskLruCache()).isNull(); ImageService.get(context, new ArrayList<String>(), imageServiceListener); assertThat(CacheService.getBitmapLruCache()).isNotNull(); assertThat(CacheService.getDiskLruCache()).isNotNull(); }