### Question:
Drug extends AbstractNamedEntity<Drug> implements Comparable<Drug> { public void setAtcCode(String atcCode) { String oldVal = d_atcCode; d_atcCode = atcCode; firePropertyChange(PROPERTY_ATCCODE, oldVal, d_atcCode); } Drug(String name, String atcCode); String getAtcCode(); void setAtcCode(String atcCode); @Override String toString(); @Override boolean equals(Object o); @Override boolean deepEquals(Entity other); @Override Set<Entity> getDependencies(); void setName(String name); static final String PROPERTY_ATCCODE; }### Answer:
@Test public void testSetAtcCode() { JUnitUtil.testSetter(new Drug("name", "G0101"), Drug.PROPERTY_ATCCODE, "G0101", "C0101"); }