ParametersModal extends Elemental2Modal<ParametersModalView> { public void setup(final List<Parameter> parameters, final ObjectPresenter parentPresenter) { this.parentPresenter = parentPresenter; parametersListPresenter.setup( getView().getParametersTable(), parameters, (parameter, presenter) -> presenter.setup(parameter, this)); super.setup(); } @Inject  ParametersModal(final ParametersModalView view,
                           final ParametersListPresenter parametersListPresenter); void setup(final List<Parameter> parameters,
                      final ObjectPresenter parentPresenter); void add(); void signalParameterAddedOrRemoved(); void fireChangeEvent();  }
@Test public void testSetup() { doNothing().when(parametersModal).superSetup(); parametersModal.setup(emptyList(), mock(ObjectPresenter.class)); verify(parametersModal).superSetup(); verify(parametersListPresenter).setup(any(), any(), any()); }