Fix a Java test