}
@Test
public void testScheduleCommand() throws Exception {
final WaitHelper.ResultHolder resultHolder = new WaitHelper.ResultHolder();
command.setCommandExecutionListener(new CommandExecutionListener() {
@Override
public void commandExecuted(Object result) {
assertNotNull("Command result not null", result);
assertTrue("Command result true", result instanceof Boolean && ((Boolean) result));
resultHolder.result = true;