Map<RetryStrategy, List<String>> testCases = new HashMap<>();
testCases.put(
new RetryStrategy(0 , 30, 3600),
singletonList("Unknown retry policy provided"));
testCases.put(
new RetryStrategy(RetryStrategy.RETRY_POLICY_LINEAR, 15, 3600),
singletonList("Initial backoff must be at least 30s"));
testCases.put(
new RetryStrategy(RetryStrategy.RETRY_POLICY_EXPONENTIAL, 15, 3600),
singletonList("Initial backoff must be at least 30s"));
testCases.put(
new RetryStrategy(RetryStrategy.RETRY_POLICY_LINEAR, 30, 60),
singletonList("Maximum backoff must be greater than 300s (5 minutes)"));
testCases.put(
new RetryStrategy(RetryStrategy.RETRY_POLICY_EXPONENTIAL, 30, 60),
singletonList("Maximum backoff must be greater than 300s (5 minutes)"));
testCases.put(
new RetryStrategy(RetryStrategy.RETRY_POLICY_LINEAR, 301, 300),
singletonList("Maximum backoff must be greater than or equal to initial backoff"));
testCases.put(
new RetryStrategy(RetryStrategy.RETRY_POLICY_EXPONENTIAL, 301, 300),
singletonList("Maximum backoff must be greater than or equal to initial backoff"));