AbstractScenarioSimulationCommand extends AbstractCommand<ScenarioSimulationContext, ScenarioSimulationViolation> { @Override public CommandResult<ScenarioSimulationViolation> undo(ScenarioSimulationContext context) { String message = this.getClass().getSimpleName() + " is not undoable"; throw new IllegalStateException(message); } protected  AbstractScenarioSimulationCommand(); long getId(); @Override CommandResult<ScenarioSimulationViolation> undo(ScenarioSimulationContext context); @Override CommandResult<ScenarioSimulationViolation> execute(ScenarioSimulationContext context);  }
@Test(expected = IllegalStateException.class) public void undo() { command.undo(scenarioSimulationContextLocal); }