RunSystemCommandTask implements Callable<Boolean> { @Override public Boolean call() throws Exception { systemCommandRunner.run(systemCommand, commandId); return true; } RunSystemCommandTask(
            final SystemCommandRunner systemCommandRunner,
            final SystemCommand systemCommand,
            final UUID commandId); @Override Boolean call();  }
@Test public void shouldRunTheSystemCommand() throws Exception { final UUID commandId = randomUUID(); final SystemCommandRunner systemCommandRunner = mock(SystemCommandRunner.class); final SystemCommand systemCommand = mock(SystemCommand.class); final RunSystemCommandTask runSystemCommandTask = new RunSystemCommandTask( systemCommandRunner, systemCommand, commandId ); runSystemCommandTask.call(); verify(systemCommandRunner).run(systemCommand, commandId); }