String loadAndSerialize(String configFile, TikaConfigSerializer.Mode mode) throws Exception {
        TikaConfig config = getConfig(configFile);
        StringWriter writer = new StringWriter();
        TikaConfigSerializer.serialize(config, mode, writer, StandardCharsets.UTF_8);
        return writer.toString().replaceAll("[\r\n\t ]+", " ");
    }
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