MockTupleSource mockTupleSource = new MockTupleSource( 9 );
// n2 is only node in it's segment
ObjectTypeNode otn = new ObjectTypeNode( 2, null, new ClassObjectType( String.class ), buildContext );
BetaNode n1 = new JoinNode( 10, new LeftInputAdapterNode(3, otn, buildContext ), mockObjectSource,
new EmptyBetaConstraints(), buildContext );
BetaNode n2 = new JoinNode( 11, n1, mockObjectSource,
new EmptyBetaConstraints(), buildContext );
BetaNode n3 = new JoinNode( 12, n1, mockObjectSource,
new EmptyBetaConstraints(), buildContext );
BetaNode n4 = new JoinNode( 13, n2, mockObjectSource,
new EmptyBetaConstraints(), buildContext );
BetaNode n5 = new JoinNode( 14, n2, mockObjectSource,
new EmptyBetaConstraints(), buildContext );
n1.addAssociation( rule1, null );
n1.addAssociation( rule2, null );
n1.addAssociation( rule3, null );