source: class PDDocumentOutlineTest {
  
      @Test
      public void outlinesCount()
      {
  
target:         PDDocumentOutline outline = new PDDocumentOutline();
          PDOutlineItem root = new PDOutlineItem();
          outline.addLast(root);
          assertEquals(1, outline.getOpenCount());
          root.addLast(new PDOutlineItem());
          assertEquals(-1, root.getOpenCount());
          assertEquals(1, outline.getOpenCount());
          root.addLast(new PDOutlineItem());
          assertEquals(-2, root.getOpenCount());
          assertEquals(1, outline.getOpenCount());
          root.openNode();
          assertEquals(2, root.getOpenCount());
          assertEquals(3, outline.getOpenCount());
      }
  
  }