@Test
    public void testICNS() throws Exception {
        Metadata metadata = new Metadata();
        metadata.set(Metadata.CONTENT_TYPE, "image/icns");
        metadata.set("Icons count", "2");
        metadata.set("Icons details", "16x16 (24 bpp), 32x32 (24 bpp)");
        metadata.set("Masked icon count", "2");
        metadata.set("Masked icon details", "16x16 (8 bpp), 32x32 (8 bpp)");


        try (InputStream stream = getClass().getResourceAsStream("/test-documents/testICNS.icns")) {
            parser.parse(stream, new DefaultHandler(), metadata, new ParseContext());
        }
    }
Tests a file with multiple icons and masks
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-image-module/src/test/java/org/apache/tika/parser/image/ICNSParserTest.java