### Question:
LoginResponse { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } LoginResponse that = (LoginResponse) o; return new EqualsBuilder().append(token, that.token).isEquals(); }  @Override boolean equals(Object o); @Override int hashCode(); String getToken(); void setToken(String token);  }### Answer:
@Test void testEquals() { var tokenResponse = new LoginResponse(); tokenResponse.setToken("sometoken"); assertEquals(tokenResponse, tokenResponse); assertNotEquals(tokenResponse, null); assertNotEquals(tokenResponse, new LoginResponse()); assertNotEquals(tokenResponse, new Object()); }