BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
608 / 1048 · Module 13 — MUnit← prev⊞ allnext →

13.22Test the actual error behavior

Production:

Salesforce Upsert
 ↓
CONNECTIVITY
 ↓
Until Successful
 ↓
retry exhausted
 ↓
503 response

MUnit should verify:

HTTP/business status = 503

error contract correct

correlationId present

Salesforce called correct number of times

where applicable.

You can exercise failure logic deterministically without turning off Salesforce.