### Question:
RelationshipEndDef extends TypeDefElementHeader { @Override public String toString() { return "RelationshipEndDef{" + "attributeName='" + attributeName + '\'' + ", entityType='" + getEntityType() + '\'' + ", attributeDescription='" + attributeDescription + '\'' + ", attributeCardinality=" + attributeCardinality + '}'; } RelationshipEndDef();  RelationshipEndDef(RelationshipEndDef template); TypeDefLink getEntityType(); void setEntityType(TypeDefLink entityType); String getAttributeName(); void setAttributeName(String attributeName); RelationshipEndCardinality getAttributeCardinality(); void setAttributeCardinality(RelationshipEndCardinality attributeCardinality); String getAttributeDescription(); void setAttributeDescription(String attributeDescription); String getAttributeDescriptionGUID(); void setAttributeDescriptionGUID(String attributeDescriptionGUID); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode();  }### Answer:
@Test public void testToString() { assertTrue(getTestObject().toString().contains("RelationshipEndDef")); }