@Test
public void calculateInSampleSize_withImageMuchBiggerThanRequest_shouldBe4() {

    int nativeWidth = 2048;
    int nativeHeight = 1024;
    assertThat(ImageService.calculateInSampleSize(nativeWidth, 512)).isEqualTo(4);
}