### Question:
Drug extends AbstractNamedEntity<Drug> implements Comparable<Drug> { public void setName(String name) { String oldVal = d_name; d_name = name; firePropertyChange(PROPERTY_NAME, oldVal, d_name); } 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 testSetName() { JUnitUtil.testSetter(new Drug("name", "atc"), Drug.PROPERTY_NAME, "name", "Paroxetine"); }