Adjust java test precondition