@Test
public void testIntersect() {

    PageRange base = new PageRange(0, 10);
    PageRange noIntersection = new PageRange(11, 12);
    PageRange intersecion = new PageRange(5, 15);
    PageRange included = new PageRange(2, 5);
    assertTrue(base.intersects(intersecion));
    assertTrue(base.intersects(included));
    assertFalse(base.intersects(noIntersection));
}