RetryModeResolver { public RetryMode retryMode() { return retryMode; } RetryModeResolver(); @SdkTestInternalApi  RetryModeResolver(AwsProfileFileLocationProvider configFileLocationProvider); RetryMode retryMode();  }
@Test public void differentCombinationOfConfigs_shouldResolveCorrectly() { if (testData.envVarValue != null) { ENVIRONMENT_VARIABLE_HELPER.set(AWS_RETRY_MODE_ENV_VAR, testData.envVarValue); } if (testData.systemProperty != null) { System.setProperty(AWS_RETRY_MODE_SYSTEM_PROPERTY, testData.systemProperty); } RetryModeResolver resolver; if (testData.configFile != null) { resolver = new RetryModeResolver(new TestProfileFileLocationProvider(testData.configFile, "/resources/retry/")); } else { resolver = new RetryModeResolver(); } assertThat(resolver.retryMode(), equalTo(testData.expected)); }