@Test
public void testUnmappedUnicodeStats() throws Exception {

    List<Metadata> metadataList = getRecursiveMetadata("testPDF_bad_page_303226.pdf", true);
    Metadata m = metadataList.get(0);
    int[] totalChars = m.getIntValues(PDF.CHARACTERS_PER_PAGE);
    int[] unmappedUnicodeChars = m.getIntValues(PDF.UNMAPPED_UNICODE_CHARS_PER_PAGE);
    //weird issue with pdfbox 2.0.20
    //this test passes in my IDE, but does not pass with mvn clean install from commandline
    if (totalChars[15] > 0) {
        assertEquals(3805, totalChars[15]);
        assertEquals(120, unmappedUnicodeChars[15]);
    }
    //confirm all works with angles
    PDFParserConfig pdfParserConfig = new PDFParserConfig();
    pdfParserConfig.setDetectAngles(true);
    ParseContext parseContext = new ParseContext();
    parseContext.set(PDFParserConfig.class, pdfParserConfig);
    metadataList = getRecursiveMetadata("testPDF_bad_page_303226.pdf", parseContext,true);
    m = metadataList.get(0);
    totalChars = m.getIntValues(PDF.CHARACTERS_PER_PAGE);
    unmappedUnicodeChars = m.getIntValues(PDF.UNMAPPED_UNICODE_CHARS_PER_PAGE);
    if (totalChars[15] > 0) {
        assertEquals(3805, totalChars[15]);
        assertEquals(120, unmappedUnicodeChars[15]);
    }
}