### Question:
ContributorsListItemPresenter { public void edit() { parentPresenter.itemIsBeingEdited(); view.editMode(); } @Inject  ContributorsListItemPresenter(final View view,
                                         final LibraryPlaces libraryPlaces,
                                         final Event<NotificationEvent> notificationEvent,
                                         final Promises promises); void setupNew(final ContributorsListPresenter parentPresenter,
                         final ContributorsListService contributorsListService); void setup(final Contributor contributor,
                      final ContributorsListPresenter parentPresenter,
                      final ContributorsListService contributorsListService); void edit(); void save(); void remove(); void cancel(); void showActions(); void hideActions(); Contributor getContributor(); List<String> getUserNames(); Promise<Boolean> canRemoveContributor(); Promise<Boolean> canEditContributors(); View getView();  }### Answer:
@Test public void editTest() { final ContributorsListPresenter parentPresenter = mock(ContributorsListPresenter.class); presenter.setup(mock(Contributor.class), parentPresenter, mock(ContributorsListService.class)); presenter.edit(); verify(parentPresenter).itemIsBeingEdited(); verify(view).editMode(); }