@Test
    public void testNPEInDetection() throws Exception {
        //TIKA-3639
        List<ZipContainerDetector> zips = new ArrayList<>();
        zips.add(new IWorkDetector());
        Detector d = new CompositeDetector(new DefaultZipContainerDetector(zips));
        try (InputStream is = this.getClass()
                .getResourceAsStream("/test-documents/testIWorksNPEDetector.zip")) {
            MediaType mt = d.detect(is, new Metadata());
            assertEquals(MediaType.application("zip"), mt);
        }
    }
Check we get annotations (eg comments) from Pages
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-apple-module/src/test/java/org/apache/tika/parser/iwork/IWorkParserTest.java