@Test
public void should_return_sample_size_when_give_req_which_ratio_is_more_than_2_less_than_4() throws Exception {

    BitmapFactory.Options options = createBitmapFactoryOptions(9, 6);
    int actual = calculateInSampleSize(options, 3, 2);
    assertThat("Should return 3 when ratio is 3.", actual, is(3));
}