Assert.assertTrue("Node manager didn't reach START or ERROR",
LifecycleController.waitForOneOf(nodeManager,
LifecycleState.START_OR_ERROR, 5000));
for (int i = 0; i < 3; i++) {
SequenceGeneratorSource source = new SequenceGeneratorSource();
source.setChannel(new MemoryChannel());
PollableSourceRunner sourceRunner = new PollableSourceRunner();
sourceRunner.setSource(source);
nodeManager.add(sourceRunner);