public void testLHSExpressionNestedJavaEnum() {
RuleModel m = new RuleModel();
m.name = "test expressionsNestedJavaEnum";
FactPattern p = new FactPattern( "Person" );
SingleFieldConstraintEBLeftSide con = new SingleFieldConstraintEBLeftSide();
con.getExpressionLeftSide().appendPart( new ExpressionUnboundFact( p ) );
con.getExpressionLeftSide().appendPart( new ExpressionField( "favouriteCheese",
"Cheese",
DataType.TYPE_OBJECT ) );
con.getExpressionLeftSide().appendPart( new ExpressionField( "genericName",
"CHEESE",
DataType.TYPE_COMPARABLE ) );
con.setOperator( "==" );
con.setValue( "CHEESE.Cheddar" );
con.setConstraintValueType( SingleFieldConstraint.TYPE_LITERAL );
p.addConstraint( con );
m.addLhsItem( p );
String expected = "rule \"test expressionsNestedJavaEnum\""