constraint = mock(BetaNodeFieldConstraint.class);
final ContextEntry c = mock(ContextEntry.class);
when(constraint.createContextEntry()).thenReturn(c);
InternalKnowledgeBase kBase = (InternalKnowledgeBase) KnowledgeBaseFactory.newKnowledgeBase();
this.rule = new RuleImpl("test-rule");
pctxFactory = kBase.getConfiguration().getComponentFactory().getPropagationContextFactory();
this.context = pctxFactory.createPropagationContext(0, PropagationContext.INSERTION, null, null, null);
this.workingMemory = new StatefulKnowledgeSessionImpl(1, kBase);
final RuleBaseConfiguration configuration = new RuleBaseConfiguration();
kBase = (InternalKnowledgeBase) KnowledgeBaseFactory.newKnowledgeBase();
BuildContext buildContext = new BuildContext(kBase,
kBase.getReteooBuilder().getIdGenerator());
this.objectSource = new MockObjectSource(155);
this.tupleSource = new MockTupleSource(60);
// string1Declaration is bound to pattern 3