@Test
public void scheduledCommandsStarterShouldSendRestartRequest() {

    final String commandId = UUID.randomUUID().toString();
    final Command cmd = new Command(commandId, "FAILED");
    final List<Command> failedCommands = Arrays.asList(cmd);
    when(commandService.findFailedCommands()).thenReturn(failedCommands);
    commandTask.scheduledCommandsStarter();
    verify(commandFeignClient).restartCommand(same(commandId));
}