ApiIssuerAudienceConfig { @Override public boolean equals(Object o) { return o != null && o instanceof ApiIssuerAudienceConfig && Objects.equals(issuerAudiences, ((ApiIssuerAudienceConfig) o).issuerAudiences); } 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 equals() { ApiIssuerAudienceConfig config1 = ApiIssuerAudienceConfig.builder() .addIssuerAudiences("issuer", "aud1", "aud2") .build(); ApiIssuerAudienceConfig config2 = ApiIssuerAudienceConfig.builder() .addIssuerAudiences("issuer", "aud1", "aud2") .build(); assertThat(config1).isEqualTo(config2); assertThat(config1).isNotEqualTo(ApiIssuerAudienceConfig.UNSPECIFIED); }