### Question:
StatisticalBarRenderer extends BarRenderer implements CategoryItemRenderer, Cloneable, PublicCloneable,
                   Serializable { @Override public Range findRangeBounds(CategoryDataset dataset) { return findRangeBounds(dataset, true); } StatisticalBarRenderer(); Paint getErrorIndicatorPaint(); void setErrorIndicatorPaint(Paint paint); Stroke getErrorIndicatorStroke(); void setErrorIndicatorStroke(Stroke stroke); @Override Range findRangeBounds(CategoryDataset dataset); @Override void drawItem(Graphics2D g2,
                         CategoryItemRendererState state,
                         Rectangle2D dataArea,
                         CategoryPlot plot,
                         CategoryAxis domainAxis,
                         ValueAxis rangeAxis,
                         CategoryDataset data,
                         int row,
                         int column,
                         int pass); @Override boolean equals(Object obj);  }### Answer:
@Test public void testFindRangeBounds() { StatisticalBarRenderer r = new StatisticalBarRenderer(); assertNull(r.findRangeBounds(null)); DefaultStatisticalCategoryDataset dataset = new DefaultStatisticalCategoryDataset(); assertNull(r.findRangeBounds(dataset)); dataset.add(1.0, 0.5, "R1", "C1"); assertEquals(new Range(0.0, 1.5), r.findRangeBounds(dataset)); r.setIncludeBaseInRange(false); assertEquals(new Range(0.5, 1.5), r.findRangeBounds(dataset)); r.setIncludeBaseInRange(true); dataset.add(-2.0, 0.2, "R1", "C2"); assertEquals(new Range(-2.2, 1.5), r.findRangeBounds(dataset)); dataset.add(null, null, "R1", "C3"); assertEquals(new Range(-2.2, 1.5), r.findRangeBounds(dataset)); dataset.add(5.0, 1.0, "R2", "C3"); assertEquals(new Range(-2.2, 6.0), r.findRangeBounds(dataset)); r.setSeriesVisible(1, Boolean.FALSE); assertEquals(new Range(-2.2, 1.5), r.findRangeBounds(dataset)); }