### Question:
MetaxaCore { public Model extract( InputStream in, URIImpl docId, String mimeType) throws ExtractorException, IOException { @SuppressWarnings("rawtypes") Set factories = this.extractorRegistry.getExtractorFactories(mimeType); Model result = null; if (factories != null && !factories.isEmpty()) { ExtractorFactory factory = (ExtractorFactory)factories.iterator().next(); Extractor extractor = factory.get(); RDFContainerFactory containerFactory = new RDFContainerFactoryImpl(); RDFContainer container = containerFactory.getRDFContainer(docId); extractor.extract( container.getDescribedUri(), new BufferedInputStream(in, 8192), null, mimeType, container); in.close(); result = container.getModel(); } return result; } MetaxaCore(String configFileName); boolean isSupported(String mimeType); Model extract(
            InputStream in, URIImpl docId, String mimeType); static String getText(Model model);  }### Answer:
@Test public void testMailExtraction() throws Exception { String testFile = "mail-multipart-test.eml"; InputStream in = getResourceAsStream(testFile); assertNotNull("failed to load resource " + testFile, in); Model m = extractor.extract(in, new URIImpl("file: boolean textContained = m.contains(Variable.ANY, NMO.plainTextMessageContent, Variable.ANY); assertTrue(textContained); }