DocumentQueryParams { @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (!this.getClass().equals(obj.getClass())) { return false; } DocumentQueryParams toCheck = (DocumentQueryParams) obj; if (getPatientId() == null && toCheck.getPatientId() != null) { return false; } else if (getPatientId() != null && !getPatientId().equals(toCheck.getPatientId())) { return false; } if (getClassCodes() == null && toCheck.getClassCodes() != null) { return false; } else if (getClassCodes() != null && !getClassCodes().equals(toCheck.getClassCodes())) { return false; } if (getClassCodeScheme() == null && toCheck.getClassCodeScheme() != null) { return false; } else if (getClassCodeScheme() != null && !getClassCodeScheme().equals(toCheck.getClassCodeScheme())) { return false; } if (getCreationTimeFrom() == null && toCheck.getCreationTimeFrom() != null) { return false; } else if (getCreationTimeFrom() != null && !getCreationTimeFrom().equals(toCheck.getCreationTimeFrom())) { return false; } if (getCreationTimeTo() == null && toCheck.getCreationTimeTo() != null) { return false; } else if (getCreationTimeTo() != null && !getCreationTimeTo().equals(toCheck.getCreationTimeTo())) { return false; } if (getServiceStartTimeFrom() == null && toCheck.getServiceStartTimeFrom() != null) { return false; } else if (getServiceStartTimeFrom() != null && !getServiceStartTimeFrom().equals(toCheck.getServiceStartTimeFrom())) { return false; } if (getServiceStartTimeTo() == null && toCheck.getServiceStartTimeTo() != null) { return false; } else if (getServiceStartTimeTo() != null && !getServiceStartTimeTo().equals(toCheck.getServiceStartTimeTo())) { return false; } if (getServiceStopTimeFrom() == null && toCheck.getServiceStopTimeFrom() != null) { return false; } else if (getServiceStopTimeFrom() != null && !getServiceStopTimeFrom().equals(toCheck.getServiceStopTimeFrom())) { return false; } if (getServiceStopTimeTo() == null && toCheck.getServiceStopTimeTo() != null) { return false; } else if (getServiceStopTimeTo() != null && !getServiceStopTimeTo().equals(toCheck.getServiceStopTimeTo())) { return false; } if (getStatuses() == null && toCheck.getStatuses() != null) { return false; } else if (getStatuses() != null && !getStatuses().equals(toCheck.getStatuses())) { return false; } if (getDocumentUniqueIds() == null && toCheck.getDocumentUniqueIds() != null) { return false; } else if (getDocumentUniqueIds() != null && !getDocumentUniqueIds().equals(toCheck.getDocumentUniqueIds())) { return false; } if (getEventCodeParams() == null && toCheck.getEventCodeParams() != null) { return false; } else if (getEventCodeParams() != null && !getEventCodeParams().equals(toCheck.getEventCodeParams())) { return false; } if (getOnDemand() != toCheck.getOnDemand()) { return false; } return true; }  List<String> getClassCodes(); List<SlotType1> getSlots(); void setSlots(List<SlotType1> slots); void setClassCodes(List<String> classCodes); String getClassCodeScheme(); void setClassCodeScheme(String classCodeScheme); Date getCreationTimeFrom(); void setCreationTimeFrom(Date creationTimeFrom); Date getCreationTimeTo(); void setCreationTimeTo(Date creationTimeTo); List<String> getDocumentUniqueIds(); void setDocumentUniqueId(List<String> documentUniqueIds); String getPatientId(); void setPatientId(String patientId); Date getServiceStartTimeFrom(); void setServiceStartTimeFrom(Date serviceStartTimeFrom); Date getServiceStartTimeTo(); void setServiceStartTimeTo(Date serviceStartTimeTo); Date getServiceStopTimeFrom(); void setServiceStopTimeFrom(Date serviceStopTimeFrom); Date getServiceStopTimeTo(); void setServiceStopTimeTo(Date serviceStopTimeTo); List<String> getStatuses(); void setStatuses(List<String> statuses); List<EventCodeParam> getEventCodeParams(); void setEventCodeParams(List<EventCodeParam> eventCodeParams); Boolean getOnDemand(); void setOnDemandParams(Boolean onDemand); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void testEquals() { DocumentQueryParams param1 = getNewDQParams(); DocumentQueryParams param2 = getNewDQParams(); assertTrue(param1.equals(param2)); }