### Question:
Annotation implements Comparable<Annotation> { @Override public boolean equals(@Nullable Object object) { if (this == object) { return true; } if (object == null || !(object instanceof Annotation)) { return false; } Annotation that = (Annotation) object; return id == that.getId(); } protected  Annotation(); long getId(); void remove(); void setId(long id); void setMapboxMap(MapboxMap mapboxMap); void setMapView(MapView mapView); @Override int compareTo(@NonNull Annotation annotation); @Override boolean equals(@Nullable Object object); @Override int hashCode();  }### Answer:
@Test public void testEquals() { Annotation holder = null; assertFalse(annotation.equals(holder)); holder = annotation; assertTrue(annotation.equals(holder)); assertFalse(annotation.equals(new Object())); }