@Test
public void commonUndoRedoPreexecutionDifferentGridSIMULATION() {

    when(backgroundGridWidgetSpy.isSelected()).thenReturn(true);
    when(scenarioGridWidgetSpy.isSelected()).thenReturn(false);
    commandSpy.gridWidget = GridWidget.SIMULATION;
    final Optional<CommandResult<ScenarioSimulationViolation>> retrieved = commandSpy.commonUndoRedoPreexecution(scenarioSimulationContextLocal);
    assertTrue(retrieved.isPresent());
    assertEquals(CommandResult.Type.INFO, retrieved.get().getType());
    verify(scenarioGridPanelMock, times(1)).onResize();
    verify(scenarioGridPanelMock, times(1)).select();
}