### Question:
PersonName extends BaseChangeableOpenmrsData implements java.io.Serializable, Cloneable, Comparable<PersonName> { public String getFamilyName() { if (OpenmrsConstants.OBSCURE_PATIENTS) { return OpenmrsConstants.OBSCURE_PATIENTS_FAMILY_NAME; } return familyName; } PersonName();  PersonName(Integer personNameId);  PersonName(String givenName, String middleName, String familyName); boolean equalsContent(PersonName otherName); static PersonName newInstance(PersonName pn); String getDegree(); void setDegree(String degree); String getFamilyName(); void setFamilyName(String familyName); String getFamilyName2(); void setFamilyName2(String familyName2); String getFamilyNamePrefix(); void setFamilyNamePrefix(String familyNamePrefix); String getFamilyNameSuffix(); void setFamilyNameSuffix(String familyNameSuffix); String getGivenName(); void setGivenName(String givenName); String getMiddleName(); void setMiddleName(String middleName); Person getPerson(); void setPerson(Person person); Integer getPersonNameId(); void setPersonNameId(Integer personNameId); @Deprecated @JsonIgnore Boolean isPreferred(); Boolean getPreferred(); void setPreferred(Boolean preferred); String getPrefix(); void setPrefix(String prefix); String getFullName(); @Override String toString(); @Override Integer getId(); @Override int compareTo(PersonName other); @Override void setId(Integer id); static void setFormat(String format); static String getFormat(); static final long serialVersionUID; }### Answer:
@Test public void getFamilyName_shouldReturnObscuredNameIfObscure_patientsIsSetToTrue() { OpenmrsConstants.OBSCURE_PATIENTS = true; OpenmrsConstants.OBSCURE_PATIENTS_FAMILY_NAME = "family name"; Assert.assertEquals("family name", new PersonName().getFamilyName()); OpenmrsConstants.OBSCURE_PATIENTS = false; }