fix test java (2)