### Question:
DirectoryUserDeviceLinkData { @Override public int hashCode() { return Objects.hash(getCode(), getQrCodeUrl(), getDeviceId()); } @Deprecated  DirectoryUserDeviceLinkData(String code, String qrCodeUrl); @JsonCreator  DirectoryUserDeviceLinkData(@JsonProperty(value = "code", required = true) String code,
                                       @JsonProperty(value = "qrcode", required = true) String qrCodeUrl,
                                       @JsonProperty(value = "device_id", required = true) UUID deviceId); String getCode(); String getQrCodeUrl(); UUID getDeviceId(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void hashCodeIsEqualForSameObject() throws Exception { assertEquals(deviceAddResponse.hashCode(), deviceAddResponse.hashCode()); }
@Test public void hashCodeIsEqualForEquivalentObject() throws Exception { assertEquals(deviceAddResponse.hashCode(), new DirectoryUserDeviceLinkData(CODE, URL, DEVICE_ID).hashCode()); }
@Test public void hashCodeIsNotEqualForDifferentCode() throws Exception { assertNotEquals(deviceAddResponse.hashCode(), new DirectoryUserDeviceLinkData(null, URL, DEVICE_ID).hashCode()); }
@Test public void hashCodeIsNotEqualForDifferentUrl() throws Exception { assertNotEquals(deviceAddResponse.hashCode(), new DirectoryUserDeviceLinkData(CODE, null, DEVICE_ID).hashCode()); }
@Test public void hashCodeIsNotEqualForDifferentDeviceId() throws Exception { assertNotEquals(deviceAddResponse.hashCode(), new DirectoryUserDeviceLinkData(CODE, URL, null).hashCode()); }