Make JavaUtilsTest a bit more resilient.

One millisecond won't work on a busy system.