### Question:
NauticalMiles extends Length { @Override public NauticalMiles clone() { return (NauticalMiles)super.clone(); } NauticalMiles(double nm);  NauticalMiles(Length dist); static double fromKilometers(double km); static double fromMeters(double meters); static double toKilometers(double nm); static double toMeters(double nm); @Override NauticalMiles clone(); @Override String getLongLabel(boolean plural); @Override String getShortLabel(boolean plural); @Override double inMeters(); static final int METERS_PER_NAUTICAL_MILE; static final String NM_LONG_LABEL; static final String NM_SHORT_LABEL; }### Answer:
@Test public void testClone() { Length dist = new NauticalMiles(1.); Assert.assertEquals(dist.getMagnitude(), dist.clone().getMagnitude(), 0.); }