### Question:
OpenIdConnectTokenGenerationState { @Override public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof OpenIdConnectTokenGenerationState)) { return false; } OpenIdConnectTokenGenerationState otherState = (OpenIdConnectTokenGenerationState)other; return Objects.equal(authenticationContextClassReference, otherState.authenticationContextClassReference) && Objects.equal(authenticationModeReferences, otherState.authenticationModeReferences) && Objects.equal(nonce, otherState.nonce) && authenticationTimeInSeconds == otherState.authenticationTimeInSeconds; } private  OpenIdConnectTokenGenerationState(OpenIdConnectTokenGenerationStateBuilder builder); static OpenIdConnectTokenGenerationStateBuilder builder(); String getAuthenticationContextClassReference(); Set<String> getAuthenticationModeReferences(); long getAuthenticationTimeInSeconds(); String getNonce(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString(); JsonValue toJson(); static OpenIdConnectTokenGenerationState fromJson(JsonValue json);  }### Answer:
@Test public void testEquals() { OpenIdConnectTokenGenerationState stateOne = buildState(WITH_AUTHN_CLASS_REF, WITH_AUTHN_METHOD_REFS, WITH_AUTHN_TIME); OpenIdConnectTokenGenerationState stateTwo = buildState(WITH_AUTHN_CLASS_REF, WITH_AUTHN_METHOD_REFS, WITH_AUTHN_TIME); assertEquals(stateOne, stateTwo); stateOne = buildState(!WITH_AUTHN_CLASS_REF, WITH_AUTHN_METHOD_REFS, WITH_AUTHN_TIME); stateTwo = buildState(!WITH_AUTHN_CLASS_REF, WITH_AUTHN_METHOD_REFS, WITH_AUTHN_TIME); assertEquals(stateOne, stateTwo); stateOne = buildState(!WITH_AUTHN_CLASS_REF, !WITH_AUTHN_METHOD_REFS, WITH_AUTHN_TIME); stateTwo = buildState(!WITH_AUTHN_CLASS_REF, !WITH_AUTHN_METHOD_REFS, WITH_AUTHN_TIME); assertEquals(stateOne, stateTwo); stateOne = buildState(WITH_AUTHN_CLASS_REF, WITH_AUTHN_METHOD_REFS, !WITH_AUTHN_TIME); stateTwo = buildState(WITH_AUTHN_CLASS_REF, WITH_AUTHN_METHOD_REFS, !WITH_AUTHN_TIME); assertEquals(stateOne, stateTwo); stateOne = buildState(WITH_AUTHN_CLASS_REF, !WITH_AUTHN_METHOD_REFS, !WITH_AUTHN_TIME); stateTwo = buildState(WITH_AUTHN_CLASS_REF, !WITH_AUTHN_METHOD_REFS, !WITH_AUTHN_TIME); assertEquals(stateOne, stateTwo); stateOne = buildState(!WITH_AUTHN_CLASS_REF, !WITH_AUTHN_METHOD_REFS, !WITH_AUTHN_TIME); stateTwo = buildState(!WITH_AUTHN_CLASS_REF, !WITH_AUTHN_METHOD_REFS, !WITH_AUTHN_TIME); assertEquals(stateOne, stateTwo); }