RemoteableClassListItemPresenter extends ListItemPresenter<SingleValueItemObjectModel, DeploymentsRemoteableClassesPresenter, RemoteableClassListItemPresenter.View> { @Override public void remove() { super.remove(); parentPresenter.fireChangeEvent(); } @Inject  RemoteableClassListItemPresenter(final View view); @Override RemoteableClassListItemPresenter setup(final SingleValueItemObjectModel remoteableClass,
                                                  final DeploymentsRemoteableClassesPresenter parentPresenter); @Override void remove(); void onClassNameChange(final String className); @Override SingleValueItemObjectModel getObject();  }
@Test public void testRemove() { final DeploymentsRemoteableClassesPresenter parentPresenter = mock(DeploymentsRemoteableClassesPresenter.class); final RemoteableClassesListPresenter listPresenter = mock(RemoteableClassesListPresenter.class); remoteableClassListItemPresenter.parentPresenter = parentPresenter; remoteableClassListItemPresenter.setListPresenter(listPresenter); remoteableClassListItemPresenter.remove(); verify(listPresenter).remove(eq(remoteableClassListItemPresenter)); verify(parentPresenter).fireChangeEvent(); }