@Test
    public void testMultipleWithFallback() throws Exception {
        TikaConfig config = getConfig("TIKA-1509-multiple-fallback.xml");
        StringWriter writer = new StringWriter();
        TikaConfigSerializer.serialize(config,
                TikaConfigSerializer.Mode.STATIC_FULL, writer, StandardCharsets.UTF_8);
        try (InputStream is =
                     new ByteArrayInputStream(writer.toString().getBytes(StandardCharsets.UTF_8))) {
            config = new TikaConfig(is);
        }

        CompositeParser parser = (CompositeParser) config.getParser();
        assertEquals(2, parser.getAllComponentParsers().size());
        Parser p;

        p = parser.getAllComponentParsers().get(0);
        assertEquals(MockParser.class, ((ParserDecorator) p).getWrappedParser().getClass());

        p = parser.getAllComponentParsers().get(1);
        assertTrue(p instanceof ParserDecorator, p.toString());
        assertEquals(FallbackParser.class, ((ParserDecorator) p).getWrappedParser().getClass());

        FallbackParser fbp = (FallbackParser) ((ParserDecorator) p).getWrappedParser();
        assertEquals("DISCARD_ALL", fbp.getMetadataPolicy().toString());
    }
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