@Test
public void shouldFailIfSystemCommandNotSupported() throws Exception {

    final TestCommand testCommand = new TestCommand();
    when(systemCommandLocator.forName(testCommand.getName())).thenReturn(empty());
    try {
        systemCommander.call("TEST_COMMAND");
        fail();
    } catch (final UnrunnableSystemCommandException expected) {
        assertThat(expected.getMessage(), is("The system command 'TEST_COMMAND' is not supported on this context."));
    }
}