@Test
public void getPages() {

    PdfMergeInput victim = new PdfMergeInput(source);
    List<PageRange> ranges = new ArrayList<PageRange>();
    ranges.add(new PageRange(5, 8));
    ranges.add(new PageRange(10, 11));
    victim.addAllPageRanges(ranges);
    assertEquals(6, victim.getPages(20).size());
}