### Question:
XYDotRenderer extends AbstractXYItemRenderer implements XYItemRenderer, PublicCloneable { @Override public Object clone() throws CloneNotSupportedException { return super.clone(); } XYDotRenderer(); int getDotWidth(); void setDotWidth(int w); int getDotHeight(); void setDotHeight(int h); Shape getLegendShape(); void setLegendShape(Shape shape); @Override void drawItem(Graphics2D g2, XYItemRendererState state,
            Rectangle2D dataArea, PlotRenderingInfo info, XYPlot plot,
            ValueAxis domainAxis, ValueAxis rangeAxis, XYDataset dataset,
            int series, int item, CrosshairState crosshairState, int pass); @Override LegendItem getLegendItem(int datasetIndex, int series); @Override boolean equals(Object obj); @Override Object clone();  }### Answer:
@Test public void testCloning() throws CloneNotSupportedException { XYDotRenderer r1 = new XYDotRenderer(); XYDotRenderer r2 = (XYDotRenderer) r1.clone(); assertNotSame(r1, r2); assertSame(r1.getClass(), r2.getClass()); assertEquals(r1, r2); }