[Java] Fix typo in private method.
[Java] Clean up unit test.  Use static import for Assert.  Use Assert.fail and expected parameter annotation rather than flags to test for exceptions.  Use long based assert for long values.