@Test
public void asBitmap_withMaxSize_shouldReturnBitmap() {

    String imageData = "fake_bitmap_data";
    when(downloadResponse.getByteArray()).thenReturn(imageData.getBytes());
    final Bitmap bitmap = ImageService.asBitmap(downloadResponse, 30);
    assertThat(bitmap).isNotNull();
    assertThat(bitmap).isInstanceOf(Bitmap.class);
}