13.36Mocking different loop iterations
Sometimes you need:
item 1 → success
item 2 → failure
item 3 → success
MUnit can use then-call to invoke mocked logic whose return varies by iteration/state. MuleSoft documents this pattern specifically for mocks inside For Each.
You don't need exact syntax memorized.
Just know it's possible.