### Question:
DefaultStatisticalCategoryDataset extends AbstractDataset implements StatisticalCategoryDataset, RangeInfo, PublicCloneable { @Override public double getRangeUpperBound(boolean includeInterval) { if (includeInterval && !Double.isNaN(this.maximumRangeValueIncStdDev)) { return this.maximumRangeValueIncStdDev; } else { return this.maximumRangeValue; } } DefaultStatisticalCategoryDataset(); @Override Number getMeanValue(int row, int column); @Override Number getValue(int row, int column); @Override Number getValue(Comparable rowKey, Comparable columnKey); @Override Number getMeanValue(Comparable rowKey, Comparable columnKey); @Override Number getStdDevValue(int row, int column); @Override Number getStdDevValue(Comparable rowKey, Comparable columnKey); @Override int getColumnIndex(Comparable key); @Override Comparable getColumnKey(int column); @Override List<Comparable> getColumnKeys(); @Override int getRowIndex(Comparable key); @Override Comparable getRowKey(int row); @Override List<Comparable> getRowKeys(); @Override int getRowCount(); @Override int getColumnCount(); void add(double mean, double standardDeviation,
                    Comparable rowKey, Comparable columnKey); void add(Number mean, Number standardDeviation,
                    Comparable rowKey, Comparable columnKey); void remove(Comparable rowKey, Comparable columnKey); void removeRow(int rowIndex); void removeRow(Comparable rowKey); void removeColumn(int columnIndex); void removeColumn(Comparable columnKey); void clear(); @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 testGetRangeUpperBound() { DefaultStatisticalCategoryDataset d1 = new DefaultStatisticalCategoryDataset(); d1.add(1.0, 2.0, "R1", "C1"); assertEquals(1.0, d1.getRangeUpperBound(false), EPSILON); assertEquals(3.0, d1.getRangeUpperBound(true), EPSILON); }