13.42Contract tests
Suppose Salesforce System API promises:
{
"customerId": "string",
"status": "string"
}
MUnit can assert the System API's output.
External automation can validate against OpenAPI schema.
Both layers are valuable:
MUnit
→ internal implementation correctness
API contract test
→ consumer-facing contract correctness