ApiIssuerAudienceConfig { public ImmutableMap<String, Collection<String>> asMap() { return issuerAudiences.asMap(); } private  ApiIssuerAudienceConfig(ApiIssuerAudienceConfig.Builder builder); ImmutableMap<String, Collection<String>> asMap(); boolean isSpecified(); boolean isEmpty(); boolean hasIssuer(String issuer); ImmutableSet<String> getIssuerNames(); ImmutableSet<String> getAudiences(String issuer); @Override boolean equals(Object o); @Override int hashCode(); static Builder builder(); static final ApiIssuerAudienceConfig UNSPECIFIED; static final ApiIssuerAudienceConfig EMPTY; }
@Test public void asMap() { assertThat(ApiIssuerAudienceConfig.builder().build().asMap()).isEmpty(); ApiIssuerAudienceConfig config = ApiIssuerAudienceConfig.builder() .addIssuerAudiences("issuer", "aud1", "aud2") .build(); assertThat(config.asMap()).containsExactly("issuer", ImmutableSet.of("aud1", "aud2")); }