private static String getTypeAsString(MimeTypes mimeTypes, String text, Metadata metadata)
            throws IOException {
        return mimeTypes
                .detect(new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8)), metadata)
                .toString();

    }
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