Merge pull request #625 from mulesoft/MULE-7538

MULE-7538 - fixing failing test case that was working by chance - Thread...
(cherry picked from commit 2ff3969720c0ecd1b7a1f978d51693d9336722bf)