RestOperationsRetryPolicy extends AbstractRetryPolicy implements RetryPolicy { @Override protected int getSleepTime(int currentRetryTime) { return (retryInterval <= 0) ? 0 : retryInterval; } RestOperationsRetryPolicy();  RestOperationsRetryPolicy(int retryInterval); @Override boolean retry(Throwable e);  }
@Test public void testRetryWait() throws InterruptedException { assertEquals(5, policy.retryWaitMilli()); assertEquals(5, policy.getSleepTime(0)); }