NamedObjectItemPresenter extends ListItemPresenter<ItemObjectModel, Section<?>, NamedObjectItemPresenter.View> implements ObjectPresenter { @Override public void remove() { super.remove(); fireChangeEvent(); } @Inject  NamedObjectItemPresenter(final View view,
                                    final ParametersModal parametersModal); @Override NamedObjectItemPresenter setup(final ItemObjectModel model,
                                          final Section<?> parentPresenter); @Override void remove(); void onNameChange(final String name); void onValueChange(String value); @Override void fireChangeEvent(); void showParametersModal(); @Override ItemObjectModel getObject(); @Override void signalParameterAddedOrRemoved();  }
@Test public void testRemove() { final DeploymentsSectionPresenter parentPresenter = mock(DeploymentsSectionPresenter.class); final DeploymentsMarshallingStrategiesPresenter.MarshallingStrategiesListPresenter listPresenter = mock(DeploymentsMarshallingStrategiesPresenter.MarshallingStrategiesListPresenter.class); namedObjectItemPresenter.parentPresenter = parentPresenter; namedObjectItemPresenter.setListPresenter(listPresenter); namedObjectItemPresenter.remove(); verify(listPresenter).remove(eq(namedObjectItemPresenter)); verify(parentPresenter).fireChangeEvent(); }