private static AWSCredentialsProviderChain createChain() {
        if (StringUtils.isNullOrEmpty(TOD_CREDENTIAL_PATH)) {
            return new AWSCredentialsProviderChain(
                    new PropertiesFileCredentialsProvider(propertiesFilePath),
                    new ProfileCredentialsProvider(TEST_CREDENTIALS_PROFILE_NAME),
                    new EnvironmentVariableCredentialsProvider(),
                    new SystemPropertiesCredentialsProvider());
        }
        return new AWSCredentialsProviderChain(
                new ProfileCredentialsProvider(TOD_CREDENTIAL_PATH, "default"),
                new PropertiesFileCredentialsProvider(propertiesFilePath),
                new ProfileCredentialsProvider(TEST_CREDENTIALS_PROFILE_NAME),
                new EnvironmentVariableCredentialsProvider(),
                new SystemPropertiesCredentialsProvider());
    }
Reads a system resource fully into a String

@param location
           Relative or absolute location of system resource.
@return String contents of resource file
@throws RuntimeException
            if any error occurs
aws-java-sdk-test-utils/src/main/java/com/amazonaws/test/AWSIntegrationTestBase.java