### Question:
DirectoryV3DevicesListPostResponseDevice { @Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof DirectoryV3DevicesListPostResponseDevice)) return false; DirectoryV3DevicesListPostResponseDevice that = (DirectoryV3DevicesListPostResponseDevice) o; if (getStatus() != that.getStatus()) return false; if (getId() != null ? !getId().equals(that.getId()) : that.getId() != null) return false; if (getName() != null ? !getName().equals(that.getName()) : that.getName() != null) return false; if (getType() != null ? !getType().equals(that.getType()) : that.getType() != null) return false; if (getCreated() != null ? !getCreated().equals(that.getCreated()) : that.getCreated() != null) return false; return getUpdated() != null ? getUpdated().equals(that.getUpdated()) : that.getUpdated() == null; } DirectoryV3DevicesListPostResponseDevice(
            @JsonProperty(value = "id") UUID id,
            @JsonProperty(value = "name") String name,
            @JsonProperty(value = "type") String type,
            @JsonProperty(value = "status") int status,
            @JsonProperty(value = "created") Date created,
            @JsonProperty(value = "updated") Date updated
    ); UUID getId(); String getName(); String getType(); int getStatus(); Date getCreated(); Date getUpdated(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void equalsIsTrueForEqualObjects() throws Exception { UUID id = UUID.randomUUID(); DirectoryV3DevicesListPostResponseDevice device = new DirectoryV3DevicesListPostResponseDevice(id, "name", "type", 1, null, null); DirectoryV3DevicesListPostResponseDevice other = new DirectoryV3DevicesListPostResponseDevice(id, "name", "type", 1, null, null); assertTrue(device.equals(other)); }
@Test public void equalsIsFalseForUnequalObjects() throws Exception { DirectoryV3DevicesListPostResponseDevice device = new DirectoryV3DevicesListPostResponseDevice(UUID.randomUUID(), "name", "type", 1, null, null); DirectoryV3DevicesListPostResponseDevice other = new DirectoryV3DevicesListPostResponseDevice(UUID.randomUUID(), "name", "type", 1, null, null); assertFalse(device.equals(other)); }