### Question:
Retry implements BusinessOperation<T> { public int attempts() { return this.attempts.intValue(); } @SafeVarargs  Retry(
      BusinessOperation<T> op, 
      int maxAttempts, 
      long delay, 
      Predicate<Exception>... ignoreTests
  ); List<Exception> errors(); int attempts(); @Override T perform();  }### Answer:
@Test public void attempts() { final BusinessException e = new BusinessException("unhandled"); final Retry<String> retry = new Retry<>( () -> { throw e; }, 2, 0 ); try { retry.perform(); } catch (BusinessException ex) { } assertThat( retry.attempts(), is(1) ); }