PDOutlineNode extends PDDictionaryWrapper { public void addFirst(PDOutlineItem newChild) { requireSingleNode(newChild); prepend(newChild); updateParentOpenCountForAddedChild(newChild); } PDOutlineNode();  PDOutlineNode(COSDictionary dict); void addLast(PDOutlineItem newChild); void addFirst(PDOutlineItem newChild); boolean hasChildren(); PDOutlineItem getFirstChild(); PDOutlineItem getLastChild(); int getOpenCount(); void openNode(); void closeNode(); boolean isNodeOpen(); Iterable<PDOutlineItem> children();  }
@Test(expected = IllegalArgumentException.class) public void cannotAddFirstAList() { PDOutlineItem child = new PDOutlineItem(); child.insertSiblingAfter(new PDOutlineItem()); child.insertSiblingAfter(new PDOutlineItem()); root.addFirst(child); }