@Test
public void removeLastPage() throws IOException {

    PDDocument doc = new DocBuilder().withPages(10)
            .withPageLabelRange(0, "r")
            .withPageLabelRange(2, "D")
            .get();
    removePages(doc, asList(10), result -> {
        assertPageLabelIndexesAre(result, 0, 2);
        assertPageLabelRangeIs(result, 0, "r");
        assertPageLabelRangeIs(result, 2, "D");
    });
}