### Question:
Marker extends Annotation { @Nullable public Icon getIcon() { return icon; } Marker();  Marker(BaseMarkerOptions baseMarkerOptions);   Marker(LatLng position, Icon icon, String title, String snippet); LatLng getPosition(); String getSnippet(); String getTitle(); void hideInfoWindow(); boolean isInfoWindowShown(); void setPosition(LatLng position); void setSnippet(String snippet); void setIcon(@Nullable Icon icon); @Nullable Icon getIcon(); void setTitle(String title); @Nullable InfoWindow getInfoWindow(); @Nullable InfoWindow showInfoWindow(@NonNull MapboxMap mapboxMap, @NonNull MapView mapView); void setTopOffsetPixels(int topOffsetPixels); void setRightOffsetPixels(int rightOffsetPixels); @Override String toString();  }### Answer:
@Test public void testIcon() { Bitmap bitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_4444); Icon icon = IconFactory.recreate("test", bitmap); MarkerOptions markerOptions = new MarkerOptions().position(new LatLng()).icon(icon); Marker marker = markerOptions.getMarker(); assertEquals("Icon should match", icon, marker.getIcon()); assertEquals("Icon should match", icon, markerOptions.getIcon()); }