@Test
public void toPageDestinationNamedDestination() throws IOException {

    PDPageFitDestination dest = new PDPageFitDestination();
    dest.setPageNumber(5);
    PDNamedDestination destination = new PDNamedDestination();
    destination.setNamedDestination("ChuckNorris");
    PDOutlineItem victim = new PDOutlineItem();
    victim.setDestination(destination);
    PDDocumentCatalog catalog = mock(PDDocumentCatalog.class);
    when(catalog.findNamedDestinationPage(any())).thenReturn(dest);
    assertEquals(dest, OutlineUtils.toPageDestination(victim, catalog).get());
}