RetryStrategy implements Serializable { public long getTimeToWait() { return timeToWait; } RetryStrategy();  RetryStrategy(int numberOfRetries, long timeToWait); boolean shouldRetry(); void errorOccured(); long getTimeToWait(); static final int DEFAULT_RETRIES; static final long DEFAULT_WAIT_TIME_IN_MILLI; }
@Test public void testGetTimeToWait() throws Exception { assertEquals("Unexpected time to wait value", 2000, retry.getTimeToWait()); retry= new RetryStrategy(2, 1000); assertEquals("Unexpected time to wait value", 1000, retry.getTimeToWait()); }