### Question:
Annotation implements Comparable<Annotation> { public void remove() { if (mapboxMap == null) { return; } mapboxMap.removeAnnotation(this); } 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 testRemove() { annotation.setId(1); annotation.setMapboxMap(mapboxMap); annotation.remove(); verify(mapboxMap, times(1)).removeAnnotation(annotation); }