Backported rev. 1554064: fixed tests to work also with recent Java versions.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/branches/release12.04@1611392 13f79535-47bb-0310-9956-ffa450edef68