AwsCliConfigFile { public Map<String, AwsCliProfile> getAllProfiles() { return new LinkedHashMap<>(profilesByName); } AwsCliConfigFile();  AwsCliConfigFile(String filePath);  AwsCliConfigFile(File file); AWSCredentialsProvider getCredentialsProvider(String profile); void refresh(); Map<String, AwsCliProfile> getAllProfiles(); static final String AWSCLI_CONFIG_ENVIRONMENT_VARIABLE; static final String AWSCLI_CONFIG_SYSTEM_PROPERTY; static final String DEFAULT_PROFILE_NAME; }
@Test public void testAllProfiles() { Map<String, AwsCliProfile> actual = sut.getAllProfiles(); assertThat(actual.keySet(), hasItems("test", "src")); }