@Test
public void twoPageRanges() {

    PageRange pr = PageParser.parse("10-20,30--40");
    assertEquals("10-20,30-40", pr.getLiteral());
    assertEquals("10", pr.getPageFirst());
    assertEquals(Integer.valueOf(22), pr.getNumberOfPages());
    assertTrue(pr.isMultiplePages());
    pr = PageParser.parse("10 -  20 ,30 --40");
    assertEquals("10-20,30-40", pr.getLiteral());
    assertEquals("10", pr.getPageFirst());
    assertEquals(Integer.valueOf(22), pr.getNumberOfPages());
    assertTrue(pr.isMultiplePages());
}