@Test(expectedExceptions = IllegalArgumentException.class)
public void testEndOverlappingOdd() {

    IntervalSet set = new IntervalSet();
    Assert.assertTrue(set.add(new Interval(2, 8)));
    set.add(new Interval(3, 5));
}