DrawableComponentFactory { public Marker addMarker(MarkerOptions options) { com.google.android.gms.maps.model.MarkerOptions googleOptions = AnyMapAdapter.adapt(options); com.google.android.gms.maps.model.Marker marker = map.addMarker(googleOptions); return AnyMapAdapter.adapt(marker); } DrawableComponentFactory(GoogleMap map); Marker addMarker(MarkerOptions options); Circle addCircle(CircleOptions options); Polygon addPolygon(PolygonOptions options); Polyline addPolyline(PolylineOptions options);  }
@Test public void testAddMarker() throws Exception { MarkerOptions options = new MarkerOptions(); GoogleMap map = mock(GoogleMap.class); DrawableComponentFactory factory = new DrawableComponentFactory(map); factory.addMarker(options); verify(map).addMarker(any(com.google.android.gms.maps.model.MarkerOptions.class)); }