CameraUpdateHandler { public void animateCamera(CameraUpdate cameraUpdate) { moveCamera(cameraUpdate); } CameraUpdateHandler(MapView map); void moveCamera(CameraUpdate cameraUpdate); void animateCamera(CameraUpdate cameraUpdate); void animateCamera(CameraUpdate cameraUpdate, AnyMap.CancelableCallback callback); void animateCamera(CameraUpdate cameraUpdate, int duration, AnyMap.CancelableCallback callback);  }
@Test public void testAnimateCamera() throws Exception { CameraUpdateHandler handler = spy(new CameraUpdateHandler(map)); final LatLng center = new LatLng(10, 10); OsmCameraUpdate cameraUpdate = new OsmCameraUpdate.Builder() .center(center) .build(); handler.animateCamera(cameraUpdate); verify(handler).moveCamera(refEq(cameraUpdate)); }