TestUtil.wait(WAIT_FOR_ASYNC);
assertTrue(asyncProcess.getState() == ProcessState.SUCCEEDED);
// sync components
process = new SequentialProcess();
process.add(new BusySucceedingStep());
asyncProcess = new AsyncComponent(process);
asyncProcess.start();
assertFalse(asyncProcess.getState() == ProcessState.SUCCEEDED);
TestUtil.wait(WAIT_FOR_ASYNC);
assertTrue(asyncProcess.getState() == ProcessState.SUCCEEDED);
// async components
process = new SequentialProcess();
process.add(new AsyncComponent(new BusySucceedingStep()));
asyncProcess = new AsyncComponent(process);
asyncProcess.start();
assertFalse(asyncProcess.getState() == ProcessState.SUCCEEDED);
TestUtil.wait(WAIT_FOR_ASYNC);