BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
648 / 1048 · Module 14 — External Automated Testing of Mule Integrations← prev⊞ allnext →

14.2The basic test pattern

Suppose we have:

POST /customers

Request:

{
  "customerId": "AUTO-928374",
  "companyName": "Automation Test Company",
  "phone": "4075551234"
}

Expected workflow:

test
 ↓
POST Mule
 ↓
Mule DataWeave
 ↓
Salesforce Upsert
 ↓
Account created

Your automated test does two levels of verification:

1. API response

2. Salesforce resulting state

That distinction is important.