}
public void testEmbedded() throws Exception {
InputStream input = FictionBookParserTest.class.getResourceAsStream("/test-documents/test.fb2");
try {
ContainerExtractor extractor = new ParserContainerExtractor();
TikaInputStream stream = TikaInputStream.get(input);
assertEquals(true, extractor.isSupported(stream));
// Process it
AbstractPOIContainerExtractionTest.TrackingHandler handler = new AbstractPOIContainerExtractionTest.TrackingHandler();
extractor.extract(stream, null, handler);
assertEquals(2, handler.filenames.size());
} finally {
input.close();
}