RetryStrategy implements Serializable { public boolean shouldRetry() { return numberOfTriesLeft > 0; } 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 testShouldRetry() throws Exception { assertTrue("Expected value higher than zero", retry.shouldRetry()); }