@Override
        public long delayBeforeNextRetry(AmazonWebServiceRequest originalRequest,
                                         AmazonClientException exception,
                                         int retriesAttempted) {
            collect(originalRequest, exception, retriesAttempted);
            return 0; // immediately retry to speed-up the test
        }
The retry condition and back-off strategy implementations that record all
the context data passed into shouldRetry and calculateSleepTime methods.
aws-java-sdk-core/src/test/java/com/amazonaws/retry/RetryPolicyTestBase.java