### Question:
StudyActivityPresentation { public boolean isEditing() { return d_oldActivity != null; } StudyActivityPresentation(ObservableList<StudyActivity> activityList, SortedSetModel<Drug> drugOptions);  StudyActivityPresentation(ObservableList<StudyActivity> activityList, SortedSetModel<Drug> drugOptions, StudyActivity activity); boolean isEditing(); ValueModel getNameModel(); ObservableList<Note> getNotesModel(); ValueModel getActivityModel(); List<Activity> getActivityOptions(); TreatmentActivityPresentation getTreatmentModel(); OtherActivityPresentation getOtherActivityModel(); ValueHolder<Boolean> getValidModel(); void commit(); SortedSetModel<Drug> getDrugOptions();  }### Answer:
@Test public void testIsEditing() { assertTrue(new StudyActivityPresentation(d_emptyList, null, d_activity).isEditing()); assertFalse(new StudyActivityPresentation(d_emptyList, null).isEditing()); }