@Test
    public void testXMLReaderUtilsReuse() throws Exception {
        //this just tests that there's no exception thrown
        try {
            XMLReaderUtils.setPoolSize(10);
            TikaConfig tikaConfig = TikaConfig.getDefaultConfig();
            for (int i = 0; i < 500; i++) {
                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