private static SingleFieldConstraintEBLeftSide buildSingleFieldConstraintEBLeftSide() { SingleFieldConstraintEBLeftSide sfc = new SingleFieldConstraintEBLeftSide(); sfc.setConstraintValueType( BaseSingleFieldConstraint.TYPE_LITERAL ); sfc.setExpressionValue( buildExpressionFormLine() ); sfc.setExpressionLeftSide( buildExpressionFormLine() ); sfc.setFactType( "FactType" ); // do not set fieldBinding, fieldName and fieldType, these are computed from expressionLeftSide sfc.setId( "id" ); sfc.setOperator( "operator" ); sfc.setParameter( "key", "parameter" ); sfc.setParent( new SingleFieldConstraint( "parentFieldName" ) ); sfc.setValue( "value" ); sfc.addNewConnective(); return sfc; }