* Yet another test for bug 2849731.
*/
@Test
public void testBug2849731_3() {
XYIntervalSeriesCollection d = new XYIntervalSeriesCollection();
XYIntervalSeries s = new XYIntervalSeries("S1");
s.add(1.0, Double.NaN, Double.NaN, 1.5, Double.NaN, Double.NaN);
d.addSeries(s);
Range r = DatasetUtilities.iterateRangeBounds(d);
assertEquals(1.5, r.getLowerBound(), EPSILON);
assertEquals(1.5, r.getUpperBound(), EPSILON);
s.add(1.0, 1.5, Double.NaN, Double.NaN, Double.NaN, 2.5);
r = DatasetUtilities.iterateRangeBounds(d);
assertEquals(1.5, r.getLowerBound(), EPSILON);
assertEquals(2.5, r.getUpperBound(), EPSILON);
s.add(1.0, Double.NaN, 0.5, Double.NaN, 3.5, Double.NaN);
r = DatasetUtilities.iterateRangeBounds(d);
assertEquals(1.5, r.getLowerBound(), EPSILON);
assertEquals(3.5, r.getUpperBound(), EPSILON);
}