ApiIssuerConfigs { @Override public boolean equals(Object o) { return o != null && o instanceof ApiIssuerConfigs && issuerConfigs.equals(((ApiIssuerConfigs) o).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 equals() { ApiIssuerConfigs configs1 = ApiIssuerConfigs.builder() .addIssuer(new IssuerConfig("issuerName", "issuer", "jwks")) .build(); ApiIssuerConfigs configs2 = ApiIssuerConfigs.builder() .addIssuer(new IssuerConfig("issuerName", "issuer", "jwks")) .build(); assertThat(configs1).isEqualTo(configs2); assertThat(configs1).isNotEqualTo(ApiIssuerConfigs.UNSPECIFIED); }