@Test
public void testMultipleWithFallback() throws Exception {

    TikaConfig config = getConfig("TIKA-1509-multiple-fallback.xml");
    CompositeParser parser = (CompositeParser)config.getParser();
    assertEquals(2, parser.getAllComponentParsers().size());
    Parser p;
    p = parser.getAllComponentParsers().get(0);
    assertTrue(p.toString(), p instanceof ParserDecorator);
    assertEquals(DefaultParser.class, ((ParserDecorator)p).getWrappedParser().getClass());
    p = parser.getAllComponentParsers().get(1);
    assertTrue(p.toString(), p instanceof ParserDecorator);
    assertEquals(FallbackParser.class, ((ParserDecorator)p).getWrappedParser().getClass());
    
    FallbackParser fbp = (FallbackParser)((ParserDecorator)p).getWrappedParser();
    assertEquals("DISCARD_ALL", fbp.getMetadataPolicy().toString());
}