13.24Retry test
Suppose production has retry logic.
You want:
attempt 1 → timeout
attempt 2 → timeout
attempt 3 → success
For more dynamic mocks, MUnit supports then-call, where a mock delegates to another flow that can vary its behavior based on state.
Conceptually:
mock flow
if attempt == 1
error
if attempt == 2
error
if attempt == 3
success
Then verify final success.