SONARJAVA-385 Fix an unstable unit test