@Test
public void noLinks_OnePageNotRelevantOneRelevant() {

    PDPage destPage = new PDPage();
    PDAnnotationText annotation = new PDAnnotationText();
    annotation.setPage(destPage);
    PDAnnotationText annotation2 = new PDAnnotationText();
    annotation2.setPage(oldPage);
    List<PDAnnotation> annotations = Arrays.asList(annotation, annotation2);
    oldPage.setAnnotations(annotations);
    PDDocument doc = new PDDocument();
    doc.addPage(oldPage);
    LookupTable<PDAnnotation> annotationsLookup = new AnnotationsDistiller(doc).retainRelevantAnnotations(lookup);
    assertEquals(annotationsLookup.lookup(annotation2), newPage.getAnnotations().get(0));
}