@Test
public void register() {

    undoneCommandsRegistrySpy.register(abstractScenarioGridCommandMock);
    assertFalse(undoneCommandsRegistrySpy.isEmpty());
    scenarioCommandRegistryManagerSpy.register(scenarioSimulationContextLocal, abstractScenarioGridCommandMock);
    verify(doneCommandsRegistrySpy, times(1)).register(eq(abstractScenarioGridCommandMock));
    verify(undoneCommandsRegistrySpy, times(1)).clear();
    verify(scenarioCommandRegistryManagerSpy, times(1)).setUndoRedoButtonStatus(eq(scenarioSimulationContextLocal));
    assertTrue(undoneCommandsRegistrySpy.isEmpty());
}