MULE-7840: Fixing tests for JDK6.
Merge pull request #998 from mulesoft/MULE-7840

MULE-7840: Fixing tests for JDK6.