@ParameterizedTest
    @MethodSource("images")
    void testDump(final File imageFile) throws Exception {
        Debug.debug("imageFile", imageFile);
        Debug.debug();

        final String xmpXml = Imaging.getXmpXml(imageFile);
        if (xmpXml != null) {
            Debug.debug("xmpXml: " + xmpXml);
            Debug.debug();
        }

        final WebPImageParser parser = new WebPImageParser();
        final WebPImagingParameters params = new WebPImagingParameters();

        final WebPImageMetadata metadata = parser.getMetadata(ByteSource.file(imageFile), parser.getDefaultParameters());
        if (metadata != null) {
            Debug.debug("Exif: " + metadata.getExif());
            Debug.debug();
        }

        final ByteSource bs = ByteSource.file(imageFile);

        final Dimension size = parser.getImageSize(bs, params);

        final StringWriter sw = new StringWriter();
        final PrintWriter pw = new PrintWriter(sw);
        parser.dumpImageFile(pw, bs);

        assertTrue(sw.toString().contains("Width: " + size.width));
    }
@param imageFile parameterized test image.
@throws Exception if it cannot open the images.
src/test/java/org/apache/commons/imaging/formats/webp/WebPDumpTest.java