private JpegImageMetadata getJpegImageMetadata(final File sourceFile) throws IOException {
        final JpegImageMetadata jpegImageMetadata = (JpegImageMetadata) Imaging.getMetadata(sourceFile);

        if (jpegImageMetadata == null) {
            throw new TestSkippedException();
        }

        return jpegImageMetadata;
    }
Test data.
@return test data.
@throws Exception if it fails to read the images with EXIF.
src/test/java/org/apache/commons/imaging/formats/jpeg/exif/ExifRewriterRoundtripTest.java