### Question:
DefaultBoxAndWhiskerXYDataset extends AbstractXYDataset implements BoxAndWhiskerXYDataset, RangeInfo { @Override public Range getRangeBounds(boolean includeInterval) { return this.rangeBounds; } DefaultBoxAndWhiskerXYDataset(Comparable seriesKey); @Override double getOutlierCoefficient(); void setOutlierCoefficient(double outlierCoefficient); @Override double getFaroutCoefficient(); void setFaroutCoefficient(double faroutCoefficient); @Override int getSeriesCount(); @Override int getItemCount(int series); void add(Date date, BoxAndWhiskerItem item); @Override Comparable getSeriesKey(int i); BoxAndWhiskerItem getItem(int series, int item); @Override Number getX(int series, int item); Date getXDate(int series, int item); @Override Number getY(int series, int item); @Override Number getMeanValue(int series, int item); @Override Number getMedianValue(int series, int item); @Override Number getQ1Value(int series, int item); @Override Number getQ3Value(int series, int item); @Override Number getMinRegularValue(int series, int item); @Override Number getMaxRegularValue(int series, int item); @Override Number getMinOutlier(int series, int item); @Override Number getMaxOutlier(int series, int item); @Override List<Number> getOutliers(int series, int item); @Override double getRangeLowerBound(boolean includeInterval); @Override double getRangeUpperBound(boolean includeInterval); @Override Range getRangeBounds(boolean includeInterval); @Override boolean equals(Object obj); @Override Object clone();  }### Answer:
@Test public void testGetRangeBounds() { DefaultBoxAndWhiskerXYDataset d1 = new DefaultBoxAndWhiskerXYDataset("S"); d1.add(new Date(1L), new BoxAndWhiskerItem(1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, new ArrayList())); assertEquals(new Range(5.0, 6.0), d1.getRangeBounds(false)); assertEquals(new Range(5.0, 6.0), d1.getRangeBounds(true)); d1.add(new Date(1L), new BoxAndWhiskerItem(1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, new ArrayList())); assertEquals(new Range(5.0, 6.5), d1.getRangeBounds(false)); assertEquals(new Range(5.0, 6.5), d1.getRangeBounds(true)); d1.add(new Date(2L), new BoxAndWhiskerItem(2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, new ArrayList())); assertEquals(new Range(5.0, 7.5), d1.getRangeBounds(false)); assertEquals(new Range(5.0, 7.5), d1.getRangeBounds(true)); }