@Test
public void testAllVariableBindings() {
final RuleModel model = new RuleModel();
model.lhs = new IPattern[2];
final FactPattern x = new FactPattern( "Car" );
model.lhs[0] = x;
x.setBoundName( "boundFact" );
SingleFieldConstraint sfc = new SingleFieldConstraint( "q" );
x.addConstraint( sfc );
sfc.setFieldBinding( "field1" );
SingleFieldConstraint sfc2 = new SingleFieldConstraint( "q" );
x.addConstraint( sfc2 );
sfc2.setFieldBinding( "field2" );
model.lhs[1] = new CompositeFactPattern();
List vars = model.getAllVariables();