StoppableCountDownLatch { long retryIntervalNanos() { return retryIntervalNanos; } StoppableCountDownLatch(final CancelCriterion stopper, final int count);   StoppableCountDownLatch(final CancelCriterion stopper, final int count,
      final long retryIntervalNanos, final NanoTimer nanoTimer); void await(); boolean await(final long timeout, final TimeUnit unit); boolean await(final long timeoutMillis); void countDown(); long getCount(); @Override String toString();  }
@Test public void defaultRetryIntervalNanosIsTwoSeconds() { long twoSeconds = 2; StoppableCountDownLatch latch = new StoppableCountDownLatch(stopper, 1); assertThat(NANOSECONDS.toSeconds(latch.retryIntervalNanos())) .isEqualTo(MILLISECONDS.toSeconds(RETRY_TIME_MILLIS_DEFAULT)) .isEqualTo(twoSeconds); }