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

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