@Test
public void shouldFindTheCorrectProxyForTheCommandAndInvoke() throws Exception {

    final UUID commandId = UUID.randomUUID();
    final TestCommand testCommand = new TestCommand();
    final SystemCommandHandlerProxy systemCommandHandlerProxy = mock(SystemCommandHandlerProxy.class);
    when(systemCommandStore.findCommandProxy(testCommand)).thenReturn(systemCommandHandlerProxy);
    systemCommandRunner.run(testCommand, commandId);
    verify(systemCommandHandlerProxy).invokeCommand(testCommand, commandId);
}