### Question:
LatLng implements Parcelable { public double getAltitude() { return altitude; } LatLng(); @Keep  LatLng(double latitude, double longitude);  LatLng(double latitude, double longitude, double altitude);  LatLng(Location location);  LatLng(LatLng latLng); protected  LatLng(Parcel in); void setLatitude(
    @FloatRange(from = GeometryConstants.MIN_LATITUDE, to = GeometryConstants.MAX_LATITUDE) double latitude); double getLatitude(); void setLongitude(@FloatRange(from = GeometryConstants.MIN_LONGITUDE, to = GeometryConstants.MAX_LONGITUDE)
                             double longitude); double getLongitude(); void setAltitude(double altitude); double getAltitude(); @NonNull LatLng wrap(); @Override boolean equals(@Nullable Object object); @Override int hashCode(); @NonNull @Override String toString(); @Override int describeContents(); @Override void writeToParcel(@NonNull Parcel out, int flags); double distanceTo(@NonNull LatLng other); static final Parcelable.Creator<LatLng> CREATOR; }### Answer:
@Test public void testAltitudeEmptyConstructor() { LatLng latLng1 = new LatLng(); assertEquals("altitude default value", latLng1.getAltitude(), 0.0, DELTA); }
@Test public void testAltitudeConstructor() { LatLng latLng1 = new LatLng(1.2, 3.4); assertEquals("altitude default value", latLng1.getAltitude(), 0.0, DELTA); double altitude = 5.6; LatLng latLng2 = new LatLng(1.2, 3.4, altitude); assertEquals("altitude default value", latLng2.getAltitude(), altitude, DELTA); }