@Test
    public void testXMLReaderUtilsConfigReuse() throws Exception {
        TikaConfig tikaConfig = getConfig("TIKA-4427-max-num-reuses.xml");
        try {
            assertEquals(11, XMLReaderUtils.getPoolSize());
            assertEquals(5000, XMLReaderUtils.getMaxEntityExpansions());
            assertEquals(10000, XMLReaderUtils.getMaxNumReuses());
            //make sure that there's actually a change in behavior
            assertEquals("application/rdf+xml", detect("test-difficult-rdf1.xml", tikaConfig).toString());
        } finally {
            XMLReaderUtils.setMaxEntityExpansions(XMLReaderUtils.DEFAULT_MAX_ENTITY_EXPANSIONS);
            XMLReaderUtils.setPoolSize(XMLReaderUtils.DEFAULT_POOL_SIZE);
        }
    }
TIKA-1653 If one parser has child parsers, those child parsers shouldn't
show up at the top level as well
tika-core/src/test/java/org/apache/tika/config/TikaConfigTest.java