@ParameterizedTest()
    @MethodSource("provideIcnsImagesWithMonoAndJpegPngData")
    void testIcnsElementMonoPngJpeg(final String file, final int numberOfImages) throws ImagingException, IOException {
        final File testFile = TestResources.resourceToFile(file);
        final List<BufferedImage> images = new IcnsImageParser().getAllBufferedImages(testFile);
        assertEquals(numberOfImages, images.size());
    }
Test ICNS types such as mono (ICON) and some types for either JPEG2000 or PNG (icp4, icp5, ic11, etc). For IMAGING-248.

@throws IOException      if it fails to read the input stream
@throws ImagingException if the image is corrupted or invalid
src/test/java/org/apache/commons/imaging/formats/icns/IcnsReadTest.java