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",
SuggestionCompletionEngine.TYPE_OBJECT ) );
con.getExpressionLeftSide().appendPart( new ExpressionField( "genericName",
"CHEESE",
SuggestionCompletionEngine.TYPE_COMPARABLE ) );
con.setOperator( "==" );
con.setValue( "CHEESE.Cheddar" );
con.setConstraintValueType( SingleFieldConstraint.TYPE_LITERAL );
p.addConstraint( con );
m.addLhsItem( p );
String result = BRDRLPersistence.getInstance().marshal( m );