@Test
public void testValidCallHasNoRetries() throws Exception {

  MockSleeper sleeper = new MockSleeper();
  CallableTester<Exception> callTester = new CallableTester<>(new ArrayList<Exception>());
  BackOff backoff = new RetryBoundedBackOff(3, new BackOffTester());
  ResilientOperation.retry(callTester, backoff, RetryDeterminer.DEFAULT, Exception.class,
      sleeper);
  assertThat(callTester.timesCalled()).isEqualTo(1);
  assertThat(sleeper.getCount()).isEqualTo(0);
}