@Test
public void overlapRegion() throws Exception {

    RegionImpl query = new RegionImpl("x", 122, 125);
    assertFalse(new PointRegion("x",121).overlap(query));
    assertTrue(new PointRegion("x",122).overlap(query));
    assertTrue(new PointRegion("x",125).overlap(query));
    assertFalse(new PointRegion("x",126).overlap(query));
    assertFalse(new RegionImpl("x", 100, 121).overlap(query));
    assertTrue(new RegionImpl("x", 100, 122).overlap(query));
    assertTrue(new RegionImpl("x", 100, 200).overlap(query));
    assertTrue(new RegionImpl("x", 123, 124).overlap(query));
    assertTrue(new RegionImpl("x", 125, 200).overlap(query));
    assertFalse(new RegionImpl("x", 126, 200).overlap(query));
}