@Test
public void negative() throws IOException
{

    doc = PDDocument.load(TestPDPageTree.class.getResourceAsStream("/pdfbox/com/tom_roush/pdfbox/pdmodel/with_outline.pdf"));
    assertEquals(-1, doc.getPages().indexOf(new PDPage()));
}