AWSCredentialsFactoryTest snippet