### Question:
STSIssuedTokenState { @Override public boolean equals(Object other) { if (this == other) { return true; } if (other instanceof STSIssuedTokenState) { STSIssuedTokenState otherState = (STSIssuedTokenState)other; return this.expirationTimeInSecondsFromEpoch == otherState.expirationTimeInSecondsFromEpoch && Objects.equal(this.principalName, otherState.principalName) && Objects.equal(this.stsId, otherState.stsId) && Objects.equal(this.tokenId, otherState.tokenId) && Objects.equal(this.tokenType, otherState.tokenType); } return false; } private  STSIssuedTokenState(STSIssuedTokenStateBuilder builder); String getTokenId(); String getStsId(); String getPrincipalName(); String getTokenType(); long getExpirationTimeInSecondsFromEpoch(); static STSIssuedTokenStateBuilder builder(); @Override boolean equals(Object other); @Override String toString(); @Override int hashCode(); JsonValue toJson(); static STSIssuedTokenState fromJson(JsonValue jsonValue); static final String STS_ID_QUERY_ATTRIBUTE; static final String STS_TOKEN_PRINCIPAL_QUERY_ATTRIBUTE; }### Answer:
@Test public void testEquals() { assertEquals(buildIssuedTokenState(null), buildIssuedTokenState(null)); assertNotEquals(buildIssuedTokenState(null), buildIssuedTokenState("another_token_id")); }