Fix for unit test on java 5 and ibm jvm.