public Set<MediaType> getSupportedTypes(ParseContext context) {
            Set<MediaType> supportedTypes = new HashSet<>();
            supportedTypes.add(MY_MEDIA_TYPE);
            return supportedTypes;
        }
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