@Test
    public void testDetectStarOfficeFiles() throws Exception {
        assertType("testStarOffice-5.2-calc.sdc", "application/vnd.stardivision.calc",
                "application/vnd.stardivision.calc");
        assertType("testVORCalcTemplate.vor", "application/vnd.stardivision.calc",
                "application/vnd.stardivision.calc");
        assertType("testStarOffice-5.2-draw.sda", "application/vnd.stardivision.draw",
                "application/vnd.stardivision.draw");
        assertType("testVORDrawTemplate.vor", "application/vnd.stardivision.draw",
                "application/vnd.stardivision.draw");
        assertType("testStarOffice-5.2-impress.sdd", "application/vnd.stardivision.impress",
                "application/vnd.stardivision.impress");
        assertType("testVORImpressTemplate.vor", "application/vnd.stardivision.impress",
                "application/vnd.stardivision.impress");
        assertType("testStarOffice-5.2-writer.sdw", "application/vnd.stardivision.writer",
                "application/vnd.stardivision.writer");
        assertType("testVORWriterTemplate.vor", "application/vnd.stardivision.writer",
                "application/vnd.stardivision.writer");
        //file from open office bug tracker issue #6452
        //star office >6.0
        assertType("testStarOffice-6.0-writer.sxw", "application/vnd.sun.xml.writer",
                "application/vnd.sun.xml.writer");
        //ooo byg #5116
        //can't find a diff in contents btwn sxw and stw...need to rely on file extension
        assertTypeByNameAndData("testStarOffice-6.0-writer-template.stw",
                "application/vnd.sun.xml.writer.template", "application/vnd.sun.xml.writer",
                "application/zip");

        //ooo bug #1151
        assertType("testStarOffice-6.0-calc.sxc", "application/vnd.sun.xml.calc",
                "application/vnd.sun.xml.calc");
        //ooo bug #261
        assertType("testStarOffice-6.0-draw.sxd", "application/vnd.sun.xml.draw",
                "application/vnd.sun.xml.draw");
        //ooo bug #5336
        assertType("testStarOffice-6.0-draw.sxi", "application/vnd.sun.xml.impress",
                "application/vnd.sun.xml.impress");

        //ooo bug #67431 -- had to manually fix the name spacing in the manifest.xml
        assertType("testOpenOffice-autotext.bau", "application/vnd.openofficeorg.autotext",
                "application/vnd.openofficeorg.autotext");
        //ooo bug #110760
        assertType("testOpenOffice-extension.oxt", "application/vnd.openofficeorg.extension",
                "application/vnd.openofficeorg.extension");
    }
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