BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
10 / 18 · Module 13 — MUnit · filtered: cheatsheet← prev⊞ allnext →

13.11State verification vs behavior verification

Two different tests:

State
payload.success == true
Behavior
Salesforce Upsert called exactly once

Good tests often use both when behavior matters.

But don't verify every internal processor call.

Otherwise tests become tightly coupled to implementation.