public void updateModel(Command command) {
    setFatigue(command.fatigue());
    setHealth(command.health());
    setNourishment(command.nourishment());
  }
@Test
  void testUpdateModel() {
    final var model = new GiantModel("giant1", Health.HEALTHY, Fatigue.ALERT,
        Nourishment.SATURATED);
    Action action = new Action(model);
    assertEquals(Nourishment.SATURATED, model.getNourishment());
    for (final var nourishment : Nourishment.values()) {
      for (final var fatigue : Fatigue.values()) {
        for (final var health : Health.values()) {
          Command cmd = new Command(fatigue, health, nourishment);
          action.updateModel(cmd);
          assertEquals(nourishment, model.getNourishment());
          assertEquals(fatigue, model.getFatigue());
          assertEquals(health, model.getHealth());
        }
      }
    }
  }