### Question:
ScatterRenderer extends AbstractCategoryItemRenderer implements Cloneable, PublicCloneable, Serializable { @Override public Range findRangeBounds(CategoryDataset dataset) { return findRangeBounds(dataset, true); } ScatterRenderer(); boolean getUseSeriesOffset(); void setUseSeriesOffset(boolean offset); double getItemMargin(); void setItemMargin(double margin); boolean getDrawOutlines(); void setDrawOutlines(boolean flag); boolean getUseOutlinePaint(); void setUseOutlinePaint(boolean use); boolean getItemShapeFilled(int series, int item); boolean getSeriesShapesFilled(int series); void setSeriesShapesFilled(int series, Boolean filled); void setSeriesShapesFilled(int series, boolean filled); boolean getBaseShapesFilled(); void setBaseShapesFilled(boolean flag); boolean getUseFillPaint(); void setUseFillPaint(boolean flag); @Override Range findRangeBounds(CategoryDataset dataset); @Override void drawItem(Graphics2D g2, CategoryItemRendererState state,
            Rectangle2D dataArea, CategoryPlot plot, CategoryAxis domainAxis,
            ValueAxis rangeAxis, CategoryDataset dataset, int row, int column,
            int pass); @Override LegendItem getLegendItem(int datasetIndex, int series); @Override boolean equals(Object obj); @Override Object clone();  }### Answer:
@Test public void testFindRangeBounds() { ScatterRenderer r = new ScatterRenderer(); assertNull(r.findRangeBounds(null)); DefaultMultiValueCategoryDataset dataset = new DefaultMultiValueCategoryDataset(); assertNull(r.findRangeBounds(dataset)); List values = Arrays.asList(1.0); dataset.add(values, "R1", "C1"); assertEquals(new Range(1.0, 1.0), r.findRangeBounds(dataset)); values = Arrays.asList(2.0, 2.2); dataset.add(values, "R1", "C2"); assertEquals(new Range(1.0, 2.2), r.findRangeBounds(dataset)); values = Arrays.asList(-3.0, -3.2); dataset.add(values, "R1", "C3"); assertEquals(new Range(-3.2, 2.2), r.findRangeBounds(dataset)); values = Arrays.asList(6.0); dataset.add(values, "R2", "C1"); assertEquals(new Range(-3.2, 6.0), r.findRangeBounds(dataset)); r.setSeriesVisible(1, Boolean.FALSE); assertEquals(new Range(-3.2, 2.2), r.findRangeBounds(dataset)); }