@Test
public void executeTest_ltSize_gtSize() {

    BufferedImage img1 = BufferedImageHelper.createSolidImage(new Color(0, 0, 0), 400, 200);
    BufferedImage img2 = BufferedImageHelper.createSolidImage(new Color(0, 0, 0), 100, 50);
    ScaleToNearestFactorPreprocessor pp = new ScaleToNearestFactorPreprocessor(img1, img2, 100);
    pp.process();
    Assert.assertEquals(200, pp.getResult1().getWidth());
    Assert.assertEquals(100, pp.getResult1().getHeight());
    Assert.assertEquals(100, pp.getResult2().getWidth());
    Assert.assertEquals(50, pp.getResult2().getHeight());
}