public EmbeddedDocumentExtractorFactory getEmbeddedDocumentExtractorFactory() {
        return embeddedDocumentExtractorFactory;
    }
@Test
    public void testEmbeddedBytesSelector() throws Exception {
        TikaConfig config;
        try (InputStream is = TikaConfig.class.getResourceAsStream(
                "TIKA-4207-embedded-bytes-config.xml")) {
            config = new TikaConfig(is);
        }
        AutoDetectParserConfig c = config.getAutoDetectParserConfig();
        RUnpackExtractorFactory f =
                (RUnpackExtractorFactory) c.getEmbeddedDocumentExtractorFactory();

        Metadata metadata = new Metadata();
        ParseContext parseContext = new ParseContext();
        RUnpackExtractor ex = (RUnpackExtractor) f.newInstance(metadata, parseContext);
        EmbeddedBytesSelector selector = ex.getEmbeddedBytesSelector();
        assertFalse(selector.select(getMetadata("", "")));
        assertTrue(selector.select(getMetadata("application/pdf", "")));
        assertTrue(selector.select(getMetadata("application/pdf", "ATTACHMENT")));
        assertTrue(selector.select(getMetadata("application/pdf", "INLINE")));
        assertTrue(selector.select(getMetadata("text/plain;charset=UTF-7", "INLINE")));

        assertFalse(selector.select(getMetadata("application/pdf", "MACRO")));
        assertFalse(selector.select(getMetadata("application/docx", "")));

    }