LatLng implements Parcelable { public double getLongitude() { return longitude; } LatLng(double lat, double lng); private  LatLng(Parcel in); double getLatitude(); double getLongitude(); @Override int describeContents(); @Override void writeToParcel(Parcel parcel, int i); static final Parcelable.Creator<LatLng> CREATOR; }
@Test public void shouldSetLng() { assertThat(latLng.getLongitude()).isEqualTo(70); }
@Test public void shouldSetLng_160() { LatLng minLng = new LatLng(40, -200); assertThat(minLng.getLongitude()).isEqualTo(160); }
@Test public void shouldSetLng_neg160() { LatLng maxLng = new LatLng(40, 200); assertThat(maxLng.getLongitude()).isEqualTo(-160); }