### Question:
LatLong implements Comparable<LatLong>, Serializable { @Override public String toString() { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append("latitude="); stringBuilder.append(this.latitude); stringBuilder.append(", longitude="); stringBuilder.append(this.longitude); return stringBuilder.toString(); } LatLong(double latitude, double longitude); @Override int compareTo(LatLong latLong); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); final double latitude; final double longitude; }### Answer:
@Test public void toStringTest() { LatLong latLong = new LatLong(LATITUDE, LONGITUDE); Assert.assertEquals(GEO_POINT_TO_STRING, latLong.toString()); }