### Question:
GeoPoint implements IGeoPoint, MathConstants, GeoConstants, Parcelable, Serializable, Cloneable { public static GeoPoint fromDoubleString(final String s, final char spacer) { final int spacerPos1 = s.indexOf(spacer); final int spacerPos2 = s.indexOf(spacer, spacerPos1 + 1); if (spacerPos2 == -1) { return new GeoPoint( (Double.parseDouble(s.substring(0, spacerPos1))), (Double.parseDouble(s.substring(spacerPos1 + 1, s.length())))); } else { return new GeoPoint( (Double.parseDouble(s.substring(0, spacerPos1))), (Double.parseDouble(s.substring(spacerPos1 + 1, spacerPos2))), Double.parseDouble(s.substring(spacerPos2 + 1, s.length()))); } } @Deprecated  GeoPoint(final int aLatitudeE6, final int aLongitudeE6); @Deprecated  GeoPoint(final int aLatitudeE6, final int aLongitudeE6, final int aAltitude);  GeoPoint(final double aLatitude, final double aLongitude);  GeoPoint(final double aLatitude, final double aLongitude, final double aAltitude);  GeoPoint(final Location aLocation);  GeoPoint(final GeoPoint aGeopoint);  GeoPoint(final IGeoPoint pGeopoint); private  GeoPoint(final Parcel in); static GeoPoint fromDoubleString(final String s, final char spacer); static GeoPoint fromInvertedDoubleString(final String s, final char spacer); @Deprecated static GeoPoint fromIntString(final String s); @Override double getLongitude(); @Override double getLatitude(); double getAltitude(); void setLatitude(final double aLatitude); void setLongitude(final double aLongitude); void setAltitude(final double aAltitude); void setCoords(final double aLatitude, final double aLongitude); @Override GeoPoint clone(); String toIntString(); @Override String toString(); @Override boolean equals(final Object obj); @Override int hashCode(); @Override int describeContents(); @Override void writeToParcel(final Parcel out, final int flags); double distanceToAsDouble(final IGeoPoint other); double bearingTo(final IGeoPoint other); GeoPoint destinationPoint(final double aDistanceInMeters, final double aBearingInDegrees); static GeoPoint fromCenterBetween(final GeoPoint geoPointA, final GeoPoint geoPointB); String toDoubleString(); String toInvertedDoubleString(); @Deprecated @Override int getLatitudeE6(); @Deprecated @Override int getLongitudeE6(); static final Parcelable.Creator<GeoPoint> CREATOR; }### Answer:
@Test public void test_toFromDoubleString_withoutAltitude() { final GeoPoint in = new GeoPoint(-117.123, 33.123); final GeoPoint out = GeoPoint.fromDoubleString("-117.123,33.123", ','); assertEquals("toFromString without altitude", in, out); }