NullSink nullSink = new NullSink();
nullSink.configure(new Context());
nullSink.setChannel(channel);
nodeManager.add(SourceRunner.forSource(generatorSource));
SinkProcessor processor = new DefaultSinkProcessor();
List<Sink> sinks = new ArrayList<Sink>();
sinks.add(nullSink);
processor.setSinks(sinks);
nodeManager.add(new SinkRunner(processor));
nodeManager.start();
boolean reached = LifecycleController.waitForOneOf(nodeManager,
LifecycleState.START_OR_ERROR);