### Question:
CameraPosition implements Parcelable { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } CameraPosition cameraPosition = (CameraPosition) o; if (target != null && !target.equals(cameraPosition.target)) { return false; } else if (zoom != cameraPosition.zoom) { return false; } else if (tilt != cameraPosition.tilt) { return false; } else if (bearing != cameraPosition.bearing) { return false; } else if (!Arrays.equals(padding, cameraPosition.padding)) { return false; } return true; } @Deprecated  CameraPosition(LatLng target, double zoom, double tilt, double bearing); @Keep  CameraPosition(LatLng target, double zoom, double tilt, double bearing, double[] padding); @Override int describeContents(); @Override void writeToParcel(Parcel out, int flags); @Override String toString(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); static final CameraPosition DEFAULT; static final Parcelable.Creator<CameraPosition> CREATOR; @Keep
  final double bearing; @Keep
  final LatLng target; @Keep
  final double tilt; @Keep
  final double zoom; @Keep
  final double[] padding; }### Answer:
@Test public void testEquals() { LatLng latLng = new LatLng(1, 2); CameraPosition cameraPosition = new CameraPosition(latLng, 3, 4, 5, new double[] {0, 500, 0, 0}); CameraPosition cameraPositionBearing = new CameraPosition(latLng, 3, 4, 9, new double[] {0, 500, 0, 0}); CameraPosition cameraPositionTilt = new CameraPosition(latLng, 3, 9, 5, new double[] {0, 500, 0, 0}); CameraPosition cameraPositionZoom = new CameraPosition(latLng, 9, 4, 5, new double[] {0, 500, 0, 0}); CameraPosition cameraPositionTarget = new CameraPosition(new LatLng(), 3, 4, 5, new double[] {0, 500, 0, 0}); CameraPosition cameraPositionPadding = new CameraPosition(new LatLng(), 3, 4, 5, new double[] {0, 501, 0, 0}); assertEquals("cameraPosition should match itself", cameraPosition, cameraPosition); assertNotEquals("cameraPosition should not match null", null, cameraPosition); assertNotEquals("cameraPosition should not match object", new Object(), cameraPosition); assertNotEquals("cameraPosition should not match for bearing", cameraPositionBearing, cameraPosition); assertNotEquals("cameraPosition should not match for tilt", cameraPositionTilt, cameraPosition); assertNotEquals("cameraPosition should not match for zoom", cameraPositionZoom, cameraPosition); assertNotEquals("cameraPosition should not match for target", cameraPositionTarget, cameraPosition); assertNotEquals("cameraPosition should not match for padding", cameraPositionPadding, cameraPosition); }