@Test
public void noOutlineFlat() throws IOException {

    try (PDDocument doc = PDFParser.parse(SeekableSources
            .inMemorySeekableSourceFrom(getClass().getResourceAsStream("/pdf/test_no_outline.pdf")))) {
        assertTrue(OutlineUtils.getFlatOutline(doc).isEmpty());
    }
}