LatLngBoundsMapper implements Mapper<LatLngBounds, com.google.android.gms.maps.model.LatLngBounds> { @Override public com.google.android.gms.maps.model.LatLngBounds map(LatLngBounds input) { LatLng southWest = AnyMapAdapter.adapt(input.southwest); LatLng northEast = AnyMapAdapter.adapt(input.northeast); return new com.google.android.gms.maps.model.LatLngBounds(southWest, northEast); }  @Override com.google.android.gms.maps.model.LatLngBounds map(LatLngBounds input);  }
@Test public void testMap() throws Exception { LatLngBoundsMapper mapper = new LatLngBoundsMapper(); LatLngBounds input = new LatLngBounds( new LatLng(10, 10), new LatLng(20, 20) ); com.google.android.gms.maps.model.LatLngBounds output = mapper.map(input); TestUtil.assertEquals( input.southwest, output.southwest ); TestUtil.assertEquals( input.northeast, output.northeast ); }