OutlookPSTParser extends AbstractParser { public Set<MediaType> getSupportedTypes(ParseContext context) { return SUPPORTED_TYPES; }  Set<MediaType> getSupportedTypes(ParseContext context); void parse(InputStream stream, ContentHandler handler, Metadata metadata, ParseContext context); static final MediaType MS_OUTLOOK_PST_MIMETYPE; }
@Test public void testAccept() throws Exception { assertTrue((parser.getSupportedTypes(null).contains(MediaType.application("vnd.ms-outlook-pst")))); }