final In<Ex1> pIn2 = in2.flow();
final Out<ExJoined> pOut = out.flow();
FlowDescription flow = new FlowDescription() {
@Override
protected void describe() {
CoreOperatorFactory c = new CoreOperatorFactory();
Restructure<Ex2> r1 = c.restructure(pIn1, Ex2.class);
Restructure<Ex2> r2 = c.restructure(pIn2, Ex2.class);
MasterJoinFlowFactory f = new MasterJoinFlowFactory();
Join join = f.join(pMst, c.confluent(r1, r2));
c.stop(join.missed);
pOut.add(join.joined);
}
};
assertThat(tester.runFlow(flow), is(true));
assertThat(out.toList().size(), is(2));