Merge pull request #846 from mulesoft/MULE-7728

MULE-7728: Fixed flaky test.
(cherry picked from commit 891eec807fb79a8b75aa95b46ddcc89fb3e5c695)