public void parse(InputStream stream, ContentHandler handler, Metadata metadata,
                          ParseContext context) {
            metadata.add("MyParser", "value");
        }
A test detector which always returns the type supported
by the test parser
tika-parsers/tika-parsers-standard/tika-parsers-standard-package/src/test/java/org/apache/tika/parser/AutoDetectParserTest.java