### Question:
RingPlot extends PiePlot implements Cloneable, Serializable { public void setSeparatorPaint(Paint paint) { ParamChecks.nullNotPermitted(paint, "paint"); this.separatorPaint = paint; fireChangeEvent(); } RingPlot();  RingPlot(PieDataset dataset); CenterTextMode getCenterTextMode(); void setCenterTextMode(CenterTextMode mode); String getCenterText(); void setCenterText(String text); Format getCenterTextFormatter(); void setCenterTextFormatter(Format formatter); Font getCenterTextFont(); void setCenterTextFont(Font font); Color getCenterTextColor(); void setCenterTextColor(Color color); boolean getSeparatorsVisible(); void setSeparatorsVisible(boolean visible); Stroke getSeparatorStroke(); void setSeparatorStroke(Stroke stroke); Paint getSeparatorPaint(); void setSeparatorPaint(Paint paint); double getInnerSeparatorExtension(); void setInnerSeparatorExtension(double percent); double getOuterSeparatorExtension(); void setOuterSeparatorExtension(double percent); double getSectionDepth(); void setSectionDepth(double sectionDepth); @Override PiePlotState initialise(Graphics2D g2, Rectangle2D plotArea,
            PiePlot plot, Integer index, PlotRenderingInfo info); @Override boolean equals(Object obj);  }### Answer:
@Test public void testCloning() throws CloneNotSupportedException { RingPlot p1 = new RingPlot(null); GradientPaint gp = new GradientPaint(1.0f, 2.0f, Color.yellow, 3.0f, 4.0f, Color.RED); p1.setSeparatorPaint(gp); RingPlot p2 = (RingPlot) p1.clone(); assertNotSame(p1, p2); assertSame(p1.getClass(), p2.getClass()); assertEquals(p1, p2); }
@Test public void testSerialization() throws IOException, ClassNotFoundException { RingPlot p1 = new RingPlot(null); GradientPaint gp = new GradientPaint(1.0f, 2.0f, Color.yellow, 3.0f, 4.0f, Color.RED); p1.setSeparatorPaint(gp); RingPlot p2 = (RingPlot) TestUtilities.serialised(p1); assertEquals(p1, p2); }
@Test public void testSerialization() throws IOException, ClassNotFoundException { RingPlot p1 = new RingPlot(null); GradientPaint gp = new GradientPaint(1.0f, 2.0f, Color.yellow, 3.0f, 4.0f, Color.RED); p1.setSeparatorPaint(gp); RingPlot p2 = (RingPlot) TestUtils.serialised(p1); assertEquals(p1, p2); }