ZoomController extends AbstractController { public void zoomBy(float ratio) { float zoomDegrees = model.getFieldOfView(); zoomDegrees = Math.min(zoomDegrees * ratio, MAX_ZOOM_OUT); setFieldOfView(zoomDegrees); }  @Override void start(); @Override void stop(); void zoomBy(float ratio); @VisibleForTesting
  static final float MAX_ZOOM_OUT; }
@Test public void testZoomIn_modelNotUpdatedWhenControllerNotEnabled() { expect(astronomerModel.getFieldOfView()).andReturn(INITIAL_FIELD_OF_VIEW); replay(astronomerModel); zoomController.setEnabled(false); zoomController.zoomBy(0.9f); verify(astronomerModel); }