@Test
public void testMultiplePutWithOverlap() {

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