### Question:
SAML2TokenState { @Override public boolean equals(Object other) { if (this == other) { return true; } if (other instanceof SAML2TokenState) { SAML2TokenState otherTokenState = (SAML2TokenState)other; return saml2TokenValue.equals(otherTokenState.getSAML2TokenValue()); } return false; } private  SAML2TokenState(SAML2TokenStateBuilder builder); String getSAML2TokenValue(); static SAML2TokenStateBuilder builder(); @Override String toString(); @Override boolean equals(Object other); @Override int hashCode(); JsonValue toJson(); static SAML2TokenState fromJson(JsonValue jsonValue);  }### Answer:
@Test public void testEquals() { SAML2TokenState tokenState = SAML2TokenState.builder().tokenValue(ASSERTION).build(); SAML2TokenState tokenState2 = SAML2TokenState.builder().tokenValue(ASSERTION).build(); assertEquals(tokenState, tokenState2); SAML2TokenState tokenState3 = SAML2TokenState.builder().tokenValue(ASSERTION + "foo").build(); assertNotEquals(tokenState, tokenState3); }