Details
Description
Context
When we have a MockEndpoint that expects for any header to be received, now there is no error raised if there is no Exchange received.
So , it only checks for the expression if there is an Exchange, therefore the test doesn't fail.
Where
MockEndpoint.expectedHeaderReceived:519
Fix
Add an assert for getReceivedExchanges > 0