Fix typo in sample java file

This doesn't change the test, but we may as well keep it clean