@Test
public void testJBIG2OCROnly() throws Exception {

    assumeTrue("can run OCR", canRunOCR());
    PDFParserConfig config = new PDFParserConfig();
    config.setOcrStrategy(PDFParserConfig.OCR_STRATEGY.OCR_ONLY);
    ParseContext context = new ParseContext();
    context.set(PDFParserConfig.class, config);
    //make sure everything works with regular xml _and_ with recursive
    XMLResult xmlResult = getXML("testPDF_JBIG2.pdf", context);
    assertContains("Norconex", xmlResult.xml);
}