@Test
public void testRemove() {

    for (IntervalMap set : getAllInstances()) {
        Object[] defaultValues = getTestValues(set);
        set.put(new Interval(1.0, 2.0), defaultValues[0]);
        set.put(new Interval(3.0, 4.0), defaultValues[1]);
        Assert.assertTrue(set.remove(new Interval(1.0, 2.0)));
        Assert.assertFalse(set.contains(new Interval(1.0, 2.0)));
        Assert.assertEquals(set.get(new Interval(3.0, 4.0), defaultValues[0]), defaultValues[1]);
        Assert.assertTrue(set.remove(new Interval(3.0, 4.0)));
        Assert.assertTrue(set.isEmpty());
        Assert.assertFalse(set.contains(new Interval(1.0, 2.0)));
    }
}