@Test
public void outlineFlat() throws IOException {

    try (PDDocument doc = PDFParser.parse(
            SeekableSources.inMemorySeekableSourceFrom(getClass().getResourceAsStream("/pdf/test_outline.pdf")))) {
        assertEquals(5, OutlineUtils.getFlatOutline(doc).size());
    }
}