SONAR-4053 Try to fix JUnit test (thread timing issue)