[Java]: Fix bug in transfer too test.