Rete rete = new Rete();
ObjectTypeNode objectTypeNode = rete.getOrCreateObjectTypeNode( new ClassObjectType( String.class ) );
MockObjectSink sink = new MockObjectSink();
objectTypeNode.addObjectSink( sink );
RuleBase ruleBase = new RuleBaseImpl( rete );
WorkingMemoryImpl workingMemory = (WorkingMemoryImpl) ruleBase.newWorkingMemory();
final Agenda agenda = workingMemory.getAgenda();
Consequence consequence = new Consequence() {
public void invoke(Activation activation)