@Test
public void setCurrentContextNoSimulationNoBackground() {

    final ScenarioSimulationContext.Status status = scenarioSimulationContextLocal.getStatus();
    commandSpy.restorableStatus = status;
    commandSpy.restorableStatus.setSimulation(null);
    commandSpy.restorableStatus.setBackground(null);
    final CommandResult<ScenarioSimulationViolation> retrieved = commandSpy.setCurrentContext(scenarioSimulationContextLocal);
    assertEquals(CommandResult.Type.ERROR, retrieved.getType());
    verify(scenarioGridModelMock, never()).clearSelections();
    verify(backgroundGridModelMock, never()).clearSelections();
    verify(scenarioGridMock, never()).setContent(eq(simulationMock), eq(scenarioSimulationContextLocal.getSettings().getType()));
    verify(scenarioSimulationModelMock, never()).setSimulation(eq(simulationMock));
    verify(backgroundGridMock, never()).setContent(eq(simulationMock), eq(scenarioSimulationContextLocal.getSettings().getType()));
    verify(scenarioSimulationModelMock, never()).setBackground(eq(backgroundMock));
    verify(scenarioSimulationEditorPresenterMock, never()).reloadTestTools(eq(true));
    verify(commandSpy, never()).commonExecution(eq(scenarioSimulationContextLocal));
    assertEquals(status, commandSpy.restorableStatus);
}