CircleOptionsMapper implements Mapper<CircleOptions, com.google.android.gms.maps.model.CircleOptions> { @Override public com.google.android.gms.maps.model.CircleOptions map(CircleOptions input) { LatLng center = AnyMapAdapter.adapt(input.getCenter()); return new com.google.android.gms.maps.model.CircleOptions() .center(center) .radius(input.getRadius()) .fillColor(input.getFillColor()) .strokeColor(input.getStrokeColor()) .strokeWidth(input.getStrokeWidth()); }  @Override com.google.android.gms.maps.model.CircleOptions map(CircleOptions input);  }
@Test public void testMap() throws Exception { CircleOptionsMapper mapper = new CircleOptionsMapper(); CircleOptions input = new CircleOptions() .center(new LatLng(10, 10)) .fillColor(0xff0000) .radius(100) .strokeColor(0x00ff00) .strokeWidth(5); com.google.android.gms.maps.model.CircleOptions output = mapper.map(input); TestUtil.assertEquals( input.getCenter(), output.getCenter() ); assertEquals( input.getFillColor(), output.getFillColor() ); assertEquals( input.getRadius(), output.getRadius(), 0 ); assertEquals( input.getStrokeColor(), output.getStrokeColor() ); assertEquals( input.getStrokeWidth(), output.getStrokeWidth(), 0 ); }