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

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