### Question:
OpenMetadataArchiveInstanceStore extends OpenMetadataArchiveElementHeader { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } OpenMetadataArchiveInstanceStore that = (OpenMetadataArchiveInstanceStore) objectToCompare; return Objects.equals(getEntities(), that.getEntities()) && Objects.equals(getRelationships(), that.getRelationships()) && Objects.equals(getClassifications(), that.getClassifications()); } OpenMetadataArchiveInstanceStore();  OpenMetadataArchiveInstanceStore(OpenMetadataArchiveInstanceStore   template); List<EntityDetail> getEntities(); void setEntities(List<EntityDetail> entities); List<Relationship> getRelationships(); void setRelationships(List<Relationship> relationships); List<ClassificationEntityExtension> getClassifications(); void setClassifications(List<ClassificationEntityExtension> classifications); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode();  }### Answer:
@Test public void testEquals() { assertTrue(getTestObject().equals(getTestObject())); OpenMetadataArchiveInstanceStore testObject = getTestObject(); assertTrue(testObject.equals(testObject)); assertFalse(getTestObject().equals(null)); assertFalse(getTestObject().equals("A String")); OpenMetadataArchiveInstanceStore differentObject = getTestObject(); differentObject.setEntities(new ArrayList<>()); assertFalse(testObject.equals(differentObject)); differentObject = getTestObject(); differentObject.setClassifications(new ArrayList<>()); assertFalse(testObject.equals(differentObject)); differentObject = getTestObject(); differentObject.setRelationships(new ArrayList<>()); assertFalse(testObject.equals(differentObject)); }