@Test
public void should_return_sample_size_when_give_smaller_req_width_and_height() throws Exception {

    BitmapFactory.Options options = createBitmapFactoryOptions(4, 4);
    int actual = calculateInSampleSize(options, 3, 3);
    assertThat("Should return 1 when ratio is smaller than 2.", actual, is(1));
}