public void should_not_resize_image_if_target_height_is_larger_than_the_maximum_height() throws IOException {
Screenshot screenshot = new Screenshot("wikipedia.png", "Wikipedia", 805);
Screenshot expandedScreenshot = ScreenshotFormatter.forScreenshot(screenshot).inDirectory(screenshotDirectory).expandToHeight(4000);
int resultingHeight = new SimpleImageInfo(new File(screenshotDirectory, expandedScreenshot.getFilename())).getHeight();
assertThat(resultingHeight, is(29107));
assertThat(expandedScreenshot.getWidth(), is(805));
}