@Test
public void commonUndoRedoPreexecutionSameGrid() {

    when(backgroundGridWidgetSpy.isSelected()).thenReturn(false);
    when(scenarioGridWidgetSpy.isSelected()).thenReturn(true);
    commandSpy.gridWidget = GridWidget.SIMULATION;
    final Optional<CommandResult<ScenarioSimulationViolation>> retrieved = commandSpy.commonUndoRedoPreexecution(scenarioSimulationContextLocal);
    assertFalse(retrieved.isPresent());
    verify(scenarioGridPanelMock, never()).onResize();
    verify(scenarioGridPanelMock, never()).select();
}