@Test
public void testResizeWithCrop() throws IOException {
int resizedWidth = 300;
int resizedHeight = 200;
Image originalImage = readImage(CAPEDWARF_PNG);
Transform resize = ImagesServiceFactory.makeResize(resizedWidth, resizedHeight, 0.5f, 0.5f);
Image resizedImage = imagesService.applyTransform(resize, originalImage);
assertEquals(resizedWidth, resizedImage.getWidth());
assertEquals(resizedHeight, resizedImage.getHeight());
originalImage = readImage(CAPEDWARF_PNG);