### Question:
OpenMetadataArchiveProperties extends OpenMetadataArchiveElementHeader { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } OpenMetadataArchiveProperties that = (OpenMetadataArchiveProperties) objectToCompare; return Objects.equals(getArchiveGUID(), that.getArchiveGUID()) && Objects.equals(getArchiveName(), that.getArchiveName()) && Objects.equals(getArchiveDescription(), that.getArchiveDescription()) && getArchiveType() == that.getArchiveType() && Objects.equals(getArchiveVersion(), that.getArchiveVersion()) && Objects.equals(getOriginatorName(), that.getOriginatorName()) && Objects.equals(getOriginatorOrganization(), that.getOriginatorOrganization()) && Objects.equals(getOriginatorLicense(), that.getOriginatorLicense()) && Objects.equals(getCreationDate(), that.getCreationDate()) && Objects.equals(getDependsOnArchives(), that.getDependsOnArchives()); } OpenMetadataArchiveProperties();  OpenMetadataArchiveProperties(OpenMetadataArchiveProperties  template); String getArchiveGUID(); void setArchiveGUID(String archiveGUID); String getArchiveName(); void setArchiveName(String archiveName); String getArchiveDescription(); void setArchiveDescription(String archiveDescription); OpenMetadataArchiveType getArchiveType(); void setArchiveType(OpenMetadataArchiveType archiveType); String getArchiveVersion(); void setArchiveVersion(String archiveVersion); String getOriginatorName(); void setOriginatorName(String originatorName); String getOriginatorOrganization(); void setOriginatorOrganization(String originatorOrganization); String getOriginatorLicense(); void setOriginatorLicense(String originatorLicense); Date getCreationDate(); void setCreationDate(Date creationDate); List<String> getDependsOnArchives(); void setDependsOnArchives(List<String> dependsOnArchives); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode();  }### Answer:
@Test public void testEquals() { assertTrue(getTestObject().equals(getTestObject())); OpenMetadataArchiveProperties testObject = getTestObject(); assertTrue(testObject.equals(testObject)); assertFalse(getTestObject().equals(null)); assertFalse(getTestObject().equals("A String")); OpenMetadataArchiveProperties differentObject = getTestObject(); differentObject = getTestObject(); differentObject.setArchiveGUID(null); assertFalse(testObject.equals(differentObject)); differentObject = getTestObject(); differentObject.setArchiveName(null); assertFalse(testObject.equals(differentObject)); differentObject = getTestObject(); differentObject.setArchiveDescription(null); assertFalse(testObject.equals(differentObject)); differentObject = getTestObject(); differentObject.setArchiveType(null); assertFalse(testObject.equals(differentObject)); differentObject = getTestObject(); differentObject.setOriginatorName(null); assertFalse(testObject.equals(differentObject)); differentObject = getTestObject(); differentObject.setOriginatorOrganization(null); assertFalse(testObject.equals(differentObject)); differentObject = getTestObject(); differentObject.setOriginatorLicense(null); assertFalse(testObject.equals(differentObject)); differentObject = getTestObject(); differentObject.setCreationDate(null); assertFalse(testObject.equals(differentObject)); differentObject = getTestObject(); differentObject.setDependsOnArchives(null); assertFalse(testObject.equals(differentObject)); }