Modify test to be compliant with OpenJDK.