@Test
public void testFontNameExtraction() throws Exception {

    PDFParserConfig config = new PDFParserConfig();
    config.setExtractFontNames(true);
    ParseContext pc = new ParseContext();
    pc.set(PDFParserConfig.class, config);
    XMLResult r = getXML("testPDFVarious.pdf", pc);
    assertContains("ABCDEE+Calibri", r.metadata.get(Font.FONT_NAME));
}