13.13Test DataWeave output indirectly
Suppose input:
{
"customerId": "C001",
"companyName": "Acme",
"phone": null
}
Production transformation should create:
{
"External_Customer_ID__c": "C001",
"Name": "Acme"
}
without:
Phone
How do you test it?
One approach:
mock Salesforce
but inspect what Mule attempted to send
Depending on flow design, you can:
Spy processor
capture variables
test transformation subflow
or separate DataWeave enough that the transformation can be tested cleanly.