Make JavaUtilsTest a bit more resilient.

One millisecond won't work on a busy system.
Merge pull request #275 from hgschmie/java-utils-test-fix

Make JavaUtilsTest a bit more resilient.