DoublingRetrySchedule implements RetrySchedule { @Override public String toString() { StringBuilder builder = new StringBuilder(); builder.append("DoublingRetrySchedule [startInterval=").append(startInterval).append( ", maxInterval=").append(maxInterval).append(", multiplier=").append(multiplier).append("]"); return builder.toString(); } private  DoublingRetrySchedule();  DoublingRetrySchedule(long startInterval, long maxInterval);  DoublingRetrySchedule(long startInterval, long maxInterval, int multiplier); @Override long getInterval(int index); @Override String toString();  }
@Test void testToString() { assertThat(new DoublingRetrySchedule(0, 1).toString()) .isEqualTo("DoublingRetrySchedule [startInterval=0, maxInterval=1, multiplier=1]"); }