### Question:
RelationshipDef extends TypeDef { public TypeDef cloneFromSubclass() { return new RelationshipDef(this); } RelationshipDef();  RelationshipDef(TypeDefCategory category,
                           String          guid,
                           String          name,
                           long            version,
                           String          versionName);  RelationshipDef(RelationshipDef templateTypeDef); TypeDef cloneFromSubclass(); ClassificationPropagationRule getPropagationRule(); void setPropagationRule(ClassificationPropagationRule propagationRule); RelationshipEndDef getEndDef1(); void setEndDef1(RelationshipEndDef endDef1); RelationshipEndDef getEndDef2(); void setEndDef2(RelationshipEndDef endDef2); @Override String toString(); @Override boolean equals(Object objectToCompare);  }### Answer:
@Test public void testCloneFromSubclass() { TypeDef testObject = this.getTestObject(); validateObject((RelationshipDef) testObject.cloneFromSubclass()); }