Expected parameter represents the method's output. Typically, they are used in assert statements in a test code. Expected parameters do not have choices and in test cases may take any value that is allowed by their types. The exceptions are parameters with user type that have defined choices and may take only values that are defined in leaf choices.
Expected parameters do not impact the generation complexity and size of the output domain. In other words they are not considered when calculating combinations with other parameters.
Expected parameters can appear only in the consequence statement of a constraint, as a single statement. In this case the statement means "assign value to the parameter".
The processLoanApplication method shall validate if the loan decision was correctly taken. Add a parameter named loanDecision to the method and set it's type to com.example.test.LoanDecision. Add the following choices:
Go to its details page, check the Expected checkbox and set the default value to NEGATIVE.