try {
String expectedResult = loadExpectedResult("/TestData/Templates/COCD_TP145007UK03_01.xml", true);
RelatedEntity template = new RelatedEntity();
template.parse(expectedResult, parentNamespaces);
PersonName name = template.getName();
assertEquals("Smith", name.getFamilyName());
CDAPersonRelationshipType relationshipType =
(CDAPersonRelationshipType)
HelperUtils.safelyMapCodedValueToVocabEntry(template.getCDAPersonRelationshipType(),
CDAPersonRelationshipType._01);