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