};
// create a rule for each agendaGroup
final RuleImpl rule0 = new RuleImpl("test-rule0");
final RuleTerminalNode node0 = new RuleTerminalNode(3,
new MockTupleSource(2),
rule0,
rule0.getLhs(),
0,
buildContext);
rule0.setConsequence(consequence);
final PropagationContext context0 = pctxFactory.createPropagationContext(0,
PropagationContext.INSERTION,
rule0,
null,
new DefaultFactHandle());
final RuleImpl rule1 = new RuleImpl("test-rule1",
"agendaGroup1");
final RuleTerminalNode node1 = new RuleTerminalNode(5,
new MockTupleSource(4),
rule1,
rule1.getLhs(),
0,
buildContext);
rule1.setConsequence(consequence);
final PropagationContext context1 = pctxFactory.createPropagationContext(0,
PropagationContext.INSERTION,
rule1,
null,
new DefaultFactHandle());
final RuleImpl rule2 = new RuleImpl("test-rule2",
"agendaGroup1");
final RuleTerminalNode node2 = new RuleTerminalNode(7,
new MockTupleSource(6),
rule2,
rule2.getLhs(),
0,
buildContext);
rule2.setConsequence(consequence);
final PropagationContext context2 = pctxFactory.createPropagationContext(0,
PropagationContext.INSERTION,
rule2,
null,
new DefaultFactHandle());
final RuleImpl rule3 = new RuleImpl("test-rule3",
"agendaGroup2");
final RuleTerminalNode node3 = new RuleTerminalNode(9,
new MockTupleSource(8),
rule3,
rule3.getLhs(),
0,
buildContext);
rule3.setConsequence(consequence);