10 );
final InternalFactHandle f1 = (InternalFactHandle) workingMemory.insert( cheddar1 );
tuple = new InstrumentedReteTuple( tuple,
f1 );
final ReturnValueContextEntry context1 = (ReturnValueContextEntry) constraint1.getContextEntry();
context1.updateFromTuple( workingMemory,
tuple );
assertTrue( constraint1.isAllowedCachedLeft( context1,
f1.getObject() ) );
final ReturnValueContextEntry context2 = (ReturnValueContextEntry) constraint2.getContextEntry();
context2.updateFromTuple( workingMemory,
tuple );
assertFalse( constraint2.isAllowedCachedLeft( context2,
f1.getObject() ) );
final Cheese cheddar2 = new Cheese( "cheddar",