@Test
public void testAddTwiceSame() {

    IntervalIndexStore<Node> store = new IntervalIndexStore<Node>(Node.class, null, false);
    int a = store.add(new Interval(1.0, 2.0));
    int b = store.add(new Interval(1.0, 2.0));
    Assert.assertEquals(a, b);
    Assert.assertTrue(store.contains(new Interval(1.0, 2.0)));
    Assert.assertEquals(store.size(), 1);
    Assert.assertEquals(store.getMap().get(new Interval(1.0, 2.0)).intValue(), 0);
}