boolean result = tester.runFlow(new FlowDescription() {
@Override
protected void describe() {
ExOperatorFactory f = new ExOperatorFactory();
CoreOperatorFactory c = new CoreOperatorFactory();
Cogroup cog1 = f.cogroup(pIn1, c.empty(Ex2.class));
c.stop(cog1.r2);
Branch bra = f.branch(cog1.r1);
c.stop(bra.cancel);
c.stop(bra.no);
Cogroup cog2 = f.cogroup(bra.yes, c.empty(Ex2.class));
c.stop(cog2.r2);
pOut1.add(cog2.r1);
}
});
assertThat(result, is(true));