}
@Test
public void testLiteralDates() {
RuleModel m = new RuleModel();
m.name = "test literal dates";
FactPattern p = new FactPattern( "Person" );
SingleFieldConstraint con = new SingleFieldConstraint();
con.setFieldType( DataType.TYPE_DATE );
con.setFieldName( "field1" );
con.setOperator( "==" );
con.setValue( "31-Jan-2010" );
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 dates\""
+ "\tdialect \"mvel\"\n when "
+ " Person(field1 == \"31-Jan-2010\", field2 == variableHere)"
+ " then " + "end";