LatLong { @Override public String toString() { StringBuilder builder = new StringBuilder(); builder.append("LatLong [lat="); builder.append(lat); builder.append(", lon="); builder.append(lon); builder.append("]"); return builder.toString(); } LatLong(double lat, double lon); double getLat(); double getLon(); LatLong add(double deltaLat, double deltaLon); @Override String toString();  }
@Test public void testToString() { assertEquals("LatLong [lat=10.0, lon=20.0]", new LatLong(10, 20).toString()); }