### Question:
PlumNeedle extends MeterNeedle implements Cloneable, Serializable { @Override public Object clone() throws CloneNotSupportedException { return super.clone(); }  @Override boolean equals(Object obj); @Override int hashCode(); @Override Object clone();  }### Answer:
@Test public void testCloning() throws CloneNotSupportedException { PlumNeedle n1 = new PlumNeedle(); PlumNeedle n2 = (PlumNeedle) n1.clone(); assertNotSame(n1, n2); assertSame(n1.getClass(), n2.getClass()); assertEquals(n1, n2); }