assertTrue(openEndedRange.overlapsWith(internalPoint));
}
@Test
public void testOverlapsWith() {
Interval firstRange = Interval.range(year(1990), year(2005));
Interval igalia = Interval.from(year(2001));
Interval distantPoint = Interval.point(year(2030));
Interval pointInFirstRange = Interval.point(year(2000));
Interval outRange = Interval.range(year(2020), year(2030));
assertTrue(firstRange.overlapsWith(igalia));
assertTrue(firstRange.overlapsWith(Interval.range(year(1980),
year(1991))));
assertTrue(igalia.overlapsWith(firstRange));
assertTrue(outRange.overlapsWith(igalia));
assertFalse(outRange.overlapsWith(firstRange));
assertTrue(distantPoint.overlapsWith(igalia));
assertFalse(distantPoint.overlapsWith(firstRange));
assertTrue(igalia.overlapsWith(distantPoint));
assertTrue(distantPoint.overlapsWith(igalia));
assertFalse(firstRange.overlapsWith(distantPoint));