@Test
public void shouldFailIfNoHandlerFound() throws Exception {

    final String missinCommandName = "This command does not exist";
    final SystemCommand systemCommand = mock(SystemCommand.class);
    when(systemCommand.getName()).thenReturn(missinCommandName);
    try {
        defaultSystemCommandStore.findCommandProxy(systemCommand);
        fail();
    } catch (final SystemCommandException expected) {
        assertThat(expected.getMessage(), is("Failed to find SystemCommandHandler for command 'This command does not exist'"));
    }
}