@Test
    public void testEncodingDetectors() throws Exception {
        String xml = loadAndSerialize("TIKA-1762-executors.xml", TikaConfigSerializer.Mode.STATIC);
        assertContains("<encodingDetectors> " +
                "<encodingDetector class=\"org.apache.tika.detect" +
                ".NonDetectingEncodingDetector\"/> " +
                "</encodingDetectors>", xml);
    }
TIKA-1445 It should be possible to exclude DefaultParser from
certain types, so another parser explicitly listed will take them
tika-core/src/test/java/org/apache/tika/config/TikaConfigSerializerTest.java