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