*/
public void testCompositeAndConstraint() {
final ReteooRuleBase ruleBase = (ReteooRuleBase) RuleBaseFactory.newRuleBase();
final InternalWorkingMemory workingMemory = (InternalWorkingMemory) ruleBase.newStatefulSession();
final ClassFieldExtractor extractor = cache.getExtractor( Cheese.class,
"type",
getClass().getClassLoader() );
final FieldValue field = FieldFactory.getFieldValue( "cheddar" );
final Evaluator evaluator = ValueType.STRING_TYPE.getEvaluator( Operator.EQUAL );
final LiteralConstraint constraint1 = new LiteralConstraint( extractor,
evaluator,
field );
final ClassFieldExtractor priceExtractor = cache.getExtractor( Cheese.class,
"price",
getClass().getClassLoader() );
final FieldValue priceField = FieldFactory.getFieldValue( 10 );