@Test
public void testCreateTargetImageSize() {

    ImageSize[] imageSizes = new ImageSize[]{
            new ImageSize("in", 21687, 998, 2000, 1500),
            new ImageSize("in", 23687, 445, 2000, 1500),
            new ImageSize("in", 25687, 1443, 2000, 1500)};
    final ImageSize targetImageSize = ImageSizeHandler.createTargetImageSize(imageSizes);
    Assert.assertNotNull(targetImageSize);
    assertEquals("in", targetImageSize.getIdentifier());
    assertEquals(21687, targetImageSize.getStartOffset());
    assertEquals(445, targetImageSize.getTrackOffset());
    assertEquals(6000, targetImageSize.getRows());
    assertEquals(2498, targetImageSize.getColumns());
}