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