### Question:
ConnectionUtils { public static long getPauseTime(final long pause, final int tries) { int ntries = tries; if (ntries >= HConstants.RETRY_BACKOFF.length) { ntries = HConstants.RETRY_BACKOFF.length - 1; } long normalPause = pause * HConstants.RETRY_BACKOFF[ntries]; long jitter = (long)(normalPause * RANDOM.nextFloat() * 0.01f); return normalPause + jitter; }  static long getPauseTime(final long pause, final int tries);  }### Answer:
@Test public void testRetryTimeJitter() { long[] retries = new long[200]; long baseTime = 1000000; long maxTimeExpected = (long) (baseTime * 1.01f); for (int i = 0; i < retries.length; i++) { retries[i] = ConnectionUtils.getPauseTime(baseTime, 0); } Set<Long> retyTimeSet = new TreeSet<Long>(); for (long l : retries) { assertTrue(l >= baseTime); assertTrue(l <= maxTimeExpected); retyTimeSet.add(l); } assertTrue(retyTimeSet.size() > (retries.length * 0.80)); }