### Question:
StudyActivity extends AbstractNamedEntity<StudyActivity> implements TypeWithNotes { public ObservableList<Note> getNotes() { return d_notes ; } 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 testNotes() { assertEquals(Collections.emptyList(), d_randomization.getNotes()); Note n = new Note(Source.MANUAL, "Zis is a note"); d_randomization.getNotes().add(n); assertEquals(Collections.singletonList(n), d_randomization.getNotes()); }