### Question:
PrimitiveDef extends AttributeTypeDef { public AttributeTypeDef cloneFromSubclass() { return new PrimitiveDef(this); } PrimitiveDef();  PrimitiveDef(PrimitiveDefCategory  primitiveDefCategory);  PrimitiveDef(PrimitiveDef template); AttributeTypeDef cloneFromSubclass(); PrimitiveDefCategory getPrimitiveDefCategory(); void setPrimitiveDefCategory(PrimitiveDefCategory primitiveDefCategory); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode();  }### Answer:
@Test public void testCloneFromSubclass() { PrimitiveDef testObject = this.getTestObject(); validateObject((PrimitiveDef) testObject.cloneFromSubclass()); }