@Test
public void imageWithExifRotation() throws TaskException {

    FileSource source = BaseTaskTest.customNonPdfInputAsFileSource("image/with_exif_orientation.JPG");
    ImagesToPdfDocumentConverter converter = new ImagesToPdfDocumentConverter();
    PDDocumentHandler d = converter.addPage(source);
    assertEquals(90, d.getPage(1).getRotation());
}