@Test
public void destinationTypeIsPreservedInNodes() throws IOException {

    mapping.addLookupEntry(document.getPage(2), new PDPage());
    PDDocumentOutline outline = new PDDocumentOutline();
    new OutlineDistiller(document).appendRelevantOutlineTo(outline, mapping);
    PDDestination clonedDest = outline.getFirstChild().getDestination();
    assertThat(clonedDest, is(instanceOf(PDPageXYZDestination.class)));
    assertEquals(759, ((PDPageXYZDestination) clonedDest).getTop());
    assertEquals(56, ((PDPageXYZDestination) clonedDest).getLeft());
}