### Question:
DrugTreatment extends AbstractEntity { public void setDrug(Drug drug) { Drug oldVal = d_drug; d_drug = drug; firePropertyChange(PROPERTY_DRUG, oldVal, d_drug); } DrugTreatment(Drug drug, AbstractDose dose); Drug getDrug(); void setDrug(Drug drug); AbstractDose getDose(); void setDose(AbstractDose dose); @Override String toString(); @Override Set<Entity> getDependencies(); @Override DrugTreatment clone(); String getLabel(); @Override boolean equals(Object obj); @Override int hashCode(); boolean deepEquals(Entity other); boolean isComplete(); static final String PROPERTY_DRUG; static final String PROPERTY_DOSE; }### Answer:
@Test public void testSetDrug() { JUnitUtil.testSetter(d_pg, DrugTreatment.PROPERTY_DRUG, null, new Drug("D", "atc")); }