Backporting of rev. 1639373: Improved unit test that was failing when executed in certain platforms.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/branches/release13.07@1639374 13f79535-47bb-0310-9956-ffa450edef68