### Question:
EncounterRole extends BaseChangeableOpenmrsMetadata { @Override public String toString() { String ret = ""; ret += encounterRoleId == null ? "(no ID) " : encounterRoleId.toString() + " "; return "EncounterRole: [" + ret + "]"; } EncounterRole();  EncounterRole(Integer encounterRoleId); @Override String toString(); @Override Integer getId(); @Override void setId(Integer id); Integer getEncounterRoleId(); static final String UNKNOWN_ENCOUNTER_ROLE_UUID; }### Answer:
@Test public void toString_shouldNotFailWithEmptyObject() { EncounterRole encounterRole = new EncounterRole(); @SuppressWarnings("unused") String toStringOutput = encounterRole.toString(); }