@Test
    public void testOpenContainer() throws Exception {
        try (TikaInputStream stream = TikaInputStream
                .get(getResourceAsUrl("/test-documents/testPPT.ppt"))) {
            assertNull(stream.getOpenContainer());
            assertEquals(MediaType.parse("application/vnd.ms-powerpoint"),
                    detector.detect(stream, new Metadata()));
            assertTrue(stream.getOpenContainer() instanceof POIFSFileSystem);
        }
    }
There is no way to distinguish "proper" StarOffice files from templates.
All templates have the same extension but their actual type depends on
the magic. Our current MimeTypes class doesn't allow us to use the same
glob pattern in more than one mimetype.

@throws Exception
tika-parsers/tika-parsers-standard/tika-parsers-standard-package/src/test/java/org/apache/tika/detect/TestContainerAwareDetector.java