public void testBoundFromCompositeFactFinder() {
final RuleModel model = new RuleModel();
model.lhs = new IPattern[1];
final FromCompositeFactPattern fcfp = new FromCompositeFactPattern();
final FactPattern x = new FactPattern( "Car" );
x.setBoundName( "x" );
final SingleFieldConstraint a = new SingleFieldConstraint( "name" );
a.setFieldBinding( "a" );
a.setFieldType( "String" );
x.addConstraint( a );
fcfp.setFactPattern( x );
model.lhs[0] = fcfp;
assertEquals( x,
model.getLHSBoundFact( "x" ) );