@Test
public void testXFAOnly() throws Exception {

    ParseContext context = new ParseContext();
    PDFParserConfig config = new PDFParserConfig();
    config.setIfXFAExtractOnlyXFA(true);
    context.set(PDFParserConfig.class, config);
    String xml = getXML("testPDF_XFA_govdocs1_258578.pdf", context).xml;
    assertContains("<body><div class=\"xfa_content\">", xml);
    assertContains("<li fieldName=\"Room_1\">Room [1]: my_room1</li>", xml);
    assertNotContained("Mount Rushmore National Memorial", xml);
}