### Question:
Classification extends CommunityProfileElementHeader { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof Classification)) { return false; } Classification that = (Classification) objectToCompare; return Objects.equals(getName(), that.getName()) && Objects.equals(getProperties(), that.getProperties()); } Classification();  Classification(Classification template); void setName(String name); String getName(); void setProperties(Map<String, Object> properties); Map<String, Object> getProperties(); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode();  }### Answer:
@Test public void testEquals() { assertFalse(getTestObject().equals(null)); assertFalse(getTestObject().equals("DummyString")); assertTrue(getTestObject().equals(getTestObject())); Classification sameObject = getTestObject(); assertTrue(sameObject.equals(sameObject)); Classification differentObject = getTestObject(); differentObject.setName("Different"); assertFalse(getTestObject().equals(differentObject)); }