### Question:
PersonAttribute extends BaseChangeableOpenmrsData implements java.io.Serializable, Comparable<PersonAttribute> { public void voidAttribute(String reason) { setVoided(true); setVoidedBy(Context.getAuthenticatedUser()); setVoidReason(reason); setDateVoided(new Date()); } PersonAttribute();  PersonAttribute(Integer personAttributeId);  PersonAttribute(PersonAttributeType type, String value); PersonAttribute copy(); @SuppressWarnings("unchecked") boolean equalsContent(PersonAttribute otherAttribute); Person getPerson(); void setPerson(Person person); PersonAttributeType getAttributeType(); void setAttributeType(PersonAttributeType attributeType); String getValue(); void setValue(String value); @Override String toString(); Integer getPersonAttributeId(); void setPersonAttributeId(Integer personAttributeId); @SuppressWarnings("unchecked") Object getHydratedObject(); void voidAttribute(String reason); @Override int compareTo(PersonAttribute other); @Override Integer getId(); @Override void setId(Integer id); static final long serialVersionUID; }### Answer:
@Test public void voidAttribute_shouldSetVoidedBitToTrue() { PersonAttribute pa = new PersonAttribute(2); pa.setVoided(false); pa.voidAttribute("Because"); Assert.assertTrue(pa.getVoided()); }