MULE-7265: Improved test case by using PollingProber instead of Thread.sleep.