@Test
public void testClear() {

    IntervalSet set = new IntervalSet();
    set.add(new Interval(1.0, 2.0));
    set.clear();
    Assert.assertTrue(set.isEmpty());
    Assert.assertFalse(set.contains(new Interval(1.0, 2.0)));
}