@Test
public void sharedResourceWithFontsDictionary() throws IOException {

    try (PDDocument document = PDFParser.parse(SeekableSources.inMemorySeekableSourceFrom(
            getClass().getClassLoader().getResourceAsStream("pdf/shared_resource_dic_w_fonts.pdf")))) {
        assertTrue(new OptimizationRuler(OptimizationPolicy.AUTO).apply(document));
    }
}