@Test
public void shouldThrowExceptionIfSystemCommandNotFound() throws Exception {

    final UUID commandId = fromString("08fe90e9-c35b-4850-9af2-e5e743f6736e");
    when(systemCommandStateBean.getCommandStatus(commandId)).thenReturn(empty());
    try {
        systemCommander.getCommandStatus(commandId);
        fail();
    } catch (CommandNotFoundException expected) {
        assertThat(expected.getMessage(), is("No SystemCommand found with id 08fe90e9-c35b-4850-9af2-e5e743f6736e"));
    }
}