@Test
    public void testBadMinShouldMatch2() {
        System.setProperty(MimeTypesFactory.CUSTOM_MIMES_SYS_PROP,
                "src/test/resources/org/apache/tika/mime/custom-mimetypes-badMinShouldMatch2.xml");
        assertThrows(IllegalArgumentException.class, () -> MimeTypes.getDefaultMimeTypes(new CustomClassLoader()));
    }
TIKA-2460 Test loading of custom-mimetypes.xml from sys prop.
tika-core/src/test/java/org/apache/tika/mime/MimeTypesReaderTest.java