### Question:
StatuteMiles extends Length { @Override public double inFeet() { return getMagnitude() * FEET_PER_STATUTE_MILE; } StatuteMiles(double mi);  StatuteMiles(Length dist); static double fromFeet(double feet); static double toFeet(double miles); @Override StatuteMiles clone(); @Override String getLongLabel(boolean plural); @Override String getShortLabel(boolean plural); @Override double inFeet(); static final int FEET_PER_STATUTE_MILE; static final String MILES_LONG_LABEL; static final String MILES_SHORT_LABEL; }### Answer:
@Test public void testUnits() { Length dist = new StatuteMiles(1.); Assert.assertEquals(5280., dist.inFeet(), 0.); Assert.assertEquals(1609.344, dist.inMeters(), 0.); Assert.assertEquals(5280., new Feet(dist).getMagnitude(), 0.); Assert.assertEquals(63360., new Inches(dist).getMagnitude(), 0.); Assert.assertEquals(0.86897624190064794816414686825054, new NauticalMiles(dist).getMagnitude(), 0.); Assert.assertEquals(1609.344, new Meters(dist).getMagnitude(), 0.); Assert.assertEquals(1.609344, new Kilometers(dist).getMagnitude(), 0.); Assert.assertEquals(1., new StatuteMiles(dist).getMagnitude(), 0.); Assert.assertEquals(1760., new Yards(dist).getMagnitude(), 0.); }