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();
List<Channel> channels = new ArrayList<Channel>();
channels.add(new MemoryChannel());
ChannelSelector rcs = new ReplicatingChannelSelector();
rcs.setChannels(channels);
source.setChannelProcessor(new ChannelProcessor(rcs));
PollableSourceRunner sourceRunner = new PollableSourceRunner();
sourceRunner.setSource(source);
nodeManager.add(sourceRunner);