public void parse(InputStream stream, ContentHandler handler, Metadata metadata,
                          ParseContext context) throws IOException, SAXException, TikaException {
            parser.parse(stream, handler, metadata, context);

            filenames.add(metadata.get(TikaCoreProperties.RESOURCE_NAME_KEY));
            mediaTypes.add(metadata.get(Metadata.CONTENT_TYPE));
        }
Parent class for all Package based Test cases
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-pkg-module/src/test/java/org/apache/tika/parser/pkg/AbstractPkgTest.java