XYIntervalSeries s1 = new XYIntervalSeries("Series 1", false, true);
s1.add(1.0, 1.0, 1.0, 2.0, 1.9, 2.1);
s1.add(3.0, 3.0, 3.0, 3.0, 2.9, 3.1);
s1.add(2.0, 2.0, 2.0, 2.0, 1.9, 2.1);
assertEquals(0, s1.indexOf(new Double(1.0)));
assertEquals(1, s1.indexOf(new Double(3.0)));
assertEquals(2, s1.indexOf(new Double(2.0)));
}
/**
* Simple test for the remove() method.