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

    IntervalSet set = new IntervalSet();
    Assert.assertTrue(set.add(new Interval(4.0, 5.0)));
    set.add(new Interval(4, 6));
}