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