MULE-7840: Fixing tests for JDK6.