### Question:
StudyActivity extends AbstractNamedEntity<StudyActivity> implements TypeWithNotes { public void setActivity(Activity activity) { Activity oldValue = d_activity; d_activity = activity; firePropertyChange(PROPERTY_ACTIVITY, oldValue, d_activity); } StudyActivity(String name, Activity activity); @Override Set<? extends Entity> getDependencies(); void setActivity(Activity activity); Activity getActivity(); void setUsedBy(Set<UsedBy> usedBy); Set<UsedBy> getUsedBy(); ObservableList<Note> getNotes(); boolean deepEquals(Entity obj); @Override boolean equals(Object obj); @Override StudyActivity clone(); boolean isComplete(); void setName(String name); static final String PROPERTY_ACTIVITY; static final String PROPERTY_USED_BY; }### Answer:
@Test public void testSetActivity() { JUnitUtil.testSetter(d_randomization, StudyActivity.PROPERTY_ACTIVITY, d_rndActivity, PredefinedActivity.SCREENING); }