@Test
    public void testExcelMatches() throws Exception {
        int minMatches = 4;

        // Check on the type
        MimeType excel = mimeTypes.forName("application/vnd.ms-excel");
        assertTrue(excel.hasMagic());
        assertTrue(excel.getMagics().size() >= minMatches,
                "There should be at least " + minMatches + " Excel matches, found " +
                excel.getMagics().size());

        // Check on the overall magics
        List<Magic> excelMagics = new ArrayList<>();
        for (Magic magic : magics) {
            if (magic.getType().toString().equals("application/vnd.ms-excel")) {
                excelMagics.add(magic);
            }
        }

        assertTrue(excel.getMagics().size() >= minMatches,
                "There should be at least " + minMatches + " Excel matches, found " +
                excelMagics.size());
    }
These tests try to ensure that the MimeTypesReader
has correctly processed the mime-types.xml file.
To do this, it tests that various aspects of the
mime-types.xml file have ended up correctly as
globs, matches, magics etc.
<p>
If you make updates to mime-types.xml, then the
checks in this test may no longer hold true.
As such, if tests here start failing after your
changes, please review the test details, and
update it to match the new state of the file!
tika-core/src/test/java/org/apache/tika/mime/MimeTypesReaderTest.java