@Before
    public void resetContextData() {
        retryCondition = new ContextDataCollectionRetryCondition();
        backoffStrategy = new ContextDataCollectionBackoffStrategy();
        // Reset the RetryPolicy
        clientConfiguration.setRetryPolicy(
                new RetryPolicy(retryCondition,
                                backoffStrategy,
                                EXPECTED_RETRY_COUNT, // max error retry
                                false));              // ignore the maxErrorRetry in ClientConfiguration level
        testedClient = new AmazonHttpClient(clientConfiguration);
    }
Reset the RetryPolicy and restart collecting context data
aws-java-sdk-core/src/test/java/com/amazonaws/retry/AmazonHttpClientRetryPolicyTest.java