@Test(expected = IllegalArgumentException.class)
public void testAppendItemInvalidPage() {

    new TableOfContentsCreator(new MergeParameters(), new PDDocument()).appendItem("Text", -10, new PDPage());
}