GiantController { public void setNourishment(Nourishment nourishment) { this.giant.setNourishment(nourishment); } GiantController(GiantModel giant, GiantView view); Health getHealth(); void setHealth(Health health); Fatigue getFatigue(); void setFatigue(Fatigue fatigue); Nourishment getNourishment(); void setNourishment(Nourishment nourishment); void updateView();  }
@Test public void testSetNourishment() { final GiantModel model = mock(GiantModel.class); final GiantView view = mock(GiantView.class); final GiantController controller = new GiantController(model, view); verifyZeroInteractions(model, view); for (final Nourishment nourishment : Nourishment.values()) { controller.setNourishment(nourishment); verify(model).setNourishment(nourishment); verifyZeroInteractions(view); } controller.getNourishment(); verify(model).getNourishment(); verifyNoMoreInteractions(model, view); }