@Test
public void should_return_sample_size_when_give_req_width_and_height() throws Exception {

    BitmapFactory.Options options = createBitmapFactoryOptions(4, 4);
    int actual = calculateInSampleSize(options, 2, 2);
    assertThat("should return 2 when ratio is 2", actual, is(2));
}