ApiIssuerConfigs { public ImmutableMap<String, IssuerConfig> asMap() { return issuerConfigs; } private  ApiIssuerConfigs(Builder builder); ImmutableMap<String, IssuerConfig> asMap(); boolean hasIssuer(String issuer); IssuerConfig getIssuer(String issuer); boolean isSpecified(); ApiIssuerConfigs withGoogleIdToken(); @Override boolean equals(Object o); @Override int hashCode(); static Builder builder(); static final IssuerConfig GOOGLE_ID_TOKEN_ISSUER; static final IssuerConfig GOOGLE_ID_TOKEN_ISSUER_ALT; static final ApiIssuerConfigs UNSPECIFIED; static final ApiIssuerConfigs EMPTY; }
@Test public void asMap() { assertThat(ApiIssuerConfigs.builder().build().asMap()).isEmpty(); ApiIssuerConfigs configs = ApiIssuerConfigs.builder() .addIssuer(new IssuerConfig("issuerName", "issuer", "jwks")) .build(); assertThat(configs.asMap()).containsExactly( "issuerName", new IssuerConfig("issuerName", "issuer", "jwks")); }