### Question:
XYLine3DRenderer extends XYLineAndShapeRenderer implements Effect3D, Serializable { public void setWallPaint(Paint paint) { this.wallPaint = paint; fireChangeEvent(); } XYLine3DRenderer(); @Override double getXOffset(); @Override double getYOffset(); void setXOffset(double xOffset); void setYOffset(double yOffset); Paint getWallPaint(); void setWallPaint(Paint paint); @Override int getPassCount(); @Override boolean equals(Object obj); static final double DEFAULT_X_OFFSET; static final double DEFAULT_Y_OFFSET; static final Paint DEFAULT_WALL_PAINT; }### Answer:
@Test public void testCloning() throws CloneNotSupportedException { XYLine3DRenderer r1 = new XYLine3DRenderer(); r1.setWallPaint(new GradientPaint(1.0f, 2.0f, Color.RED, 3.0f, 4.0f, Color.BLUE)); XYLine3DRenderer r2 = (XYLine3DRenderer) r1.clone(); assertNotSame(r1, r2); assertSame(r1.getClass(), r2.getClass()); assertEquals(r1, r2); }