Setting the assertion for failure
Now create an assertion that will always fail for the input you provided in this test case.
- Double-click on the wire between approveLargeOrder and FulfillmentProcess.
- Add a new assertion and click again on Browse to select only part of the message.
- Select only customerId.
- Click on OK.
- For Assert Value enter 9999.
Normally you set the assert value to what you expect the value to be
but this example is to show you what happens when your test fails. You
know this assertion will fail because the initial payload that you
supply has customer ID as 1111.
- Click on OK and click on OK again.
The whole Test now looks like this: