con2.setConstraintValueType( SingleFieldConstraint.TYPE_TEMPLATE );
p.addConstraint( con2 );
m.addLhsItem( p );
m.addRow( new String[]{ "foo", "bar" } );
String expected = "rule \"t1_0\"" +
"dialect \"mvel\"\n" +
"when \n"
+ "Person( field1 == \"foo\", field2 == \"bar\" )"