}
@Test
public void testLiteralNumerics() {
RuleModel m = new RuleModel();
m.name = "test literal numerics";
FactPattern p = new FactPattern( "Person" );
SingleFieldConstraint con = new SingleFieldConstraint();
con.setFieldType( DataType.TYPE_NUMERIC_INTEGER );
con.setFieldName( "field1" );
con.setOperator( "==" );
con.setValue( "44" );
con.setConstraintValueType( SingleFieldConstraint.TYPE_LITERAL );
p.addConstraint( con );
SingleFieldConstraint con2 = new SingleFieldConstraint();
con2.setFieldName( "field2" );
con2.setOperator( "==" );
con2.setValue( "variableHere" );
con2.setConstraintValueType( SingleFieldConstraint.TYPE_VARIABLE );
p.addConstraint( con2 );
m.addLhsItem( p );
String expected = "rule \"test literal numerics\""
+ "\tdialect \"mvel\"\n when "
+ " Person(field1 == 44, field2 == variableHere)"
+ " then " + "end";