RemoteObject remoteObject = environment.getServiceObject();
Camera camera = new CameraImpl();
CameraListener listener = mock( CameraListener.class );
camera.addCameraListener( listener );
camera.takePicture( createOptions() );
ArgumentCaptor<JsonObject> captor = ArgumentCaptor.forClass( JsonObject.class );
verify( remoteObject ).call( eq( "open" ), captor.capture() );
JsonArray resolution = captor.getValue().get( "resolution" ).asArray();
assertEquals( 100, resolution.get( 0 ).asInt() );