### Question:
OpenIdConnectTokenCreationState { @Override public boolean equals(Object other) { if (this == other) { return true; } if (other instanceof OpenIdConnectTokenCreationState) { OpenIdConnectTokenCreationState otherState = (OpenIdConnectTokenCreationState)other; return Objects.equal(nonce, otherState.nonce) && (allowAccess == otherState.allowAccess); } return false; } private  OpenIdConnectTokenCreationState(OpenIdConnectTokenCreationStateBuilder builder); static OpenIdConnectTokenCreationStateBuilder builder(); String getNonce(); boolean getAllowAccess(); @Override boolean equals(Object other); @Override int hashCode(); JsonValue toJson(); static OpenIdConnectTokenCreationState fromJson(JsonValue jsonValue);  }### Answer:
@Test public void testEquals() { assertEquals(buildCreationState(NONCE, ALLOW_ACCESS), buildCreationState(NONCE, ALLOW_ACCESS)); assertEquals(buildCreationState(NONCE, !ALLOW_ACCESS), buildCreationState(NONCE, !ALLOW_ACCESS)); assertEquals(buildCreationState(null, !ALLOW_ACCESS), buildCreationState(null, !ALLOW_ACCESS)); assertNotEquals(buildCreationState(NONCE, ALLOW_ACCESS), buildCreationState(NONCE, !ALLOW_ACCESS)); assertNotEquals(buildCreationState("abc", ALLOW_ACCESS), buildCreationState(NONCE, ALLOW_ACCESS)); assertNotEquals(buildCreationState(null, ALLOW_ACCESS), buildCreationState(NONCE, ALLOW_ACCESS)); }