final SingleFieldConstraintEBLeftSide constraint = (SingleFieldConstraintEBLeftSide) pattern.getConstraint( 0 );
assertEquals( 3,
constraint.getExpressionLeftSide().getParts().size() );
assertTrue( constraint.getExpressionLeftSide().getParts().get( 0 ) instanceof ExpressionUnboundFact );
final ExpressionUnboundFact eubf = ( (ExpressionUnboundFact) constraint.getExpressionLeftSide().getParts().get( 0 ) );
assertEquals( "OuterClassWithEnums",
eubf.getName() );
assertEquals( "OuterClassWithEnums",
eubf.getClassType() );
assertEquals( "OuterClassWithEnums",
eubf.getGenericType() );
assertTrue( constraint.getExpressionLeftSide().getParts().get( 1 ) instanceof ExpressionField );
final ExpressionField ef1 = ( (ExpressionField) constraint.getExpressionLeftSide().getParts().get( 1 ) );
assertEquals( "innerClass",
ef1.getName() );