GeoPoint implements Comparable<GeoPoint>, Serializable { @Override public String toString() { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append("GeoPoint [latitudeE6="); stringBuilder.append(this.latitudeE6); stringBuilder.append(", longitudeE6="); stringBuilder.append(this.longitudeE6); stringBuilder.append("]"); return stringBuilder.toString(); } GeoPoint(double latitude, double longitude);  GeoPoint(int latitudeE6, int longitudeE6); @Override int compareTo(GeoPoint geoPoint); @Override boolean equals(Object obj); double getLatitude(); double getLongitude(); @Override int hashCode(); @Override String toString(); final int latitudeE6; final int longitudeE6; }
@Test public void toStringTest() { GeoPoint geoPoint = new GeoPoint(LATITUDE, LONGITUDE); Assert.assertEquals(GEO_POINT_TO_STRING, geoPoint.toString()); }