DeploymentsEnvironmentEntriesPresenter extends Section<DeploymentDescriptorModel> { public void addNewEnvironmentEntry() { environmentEntriesPresenters.add(itemObjectModelFactory.newItemObjectModel("", "")); fireChangeEvent(); } @Inject  DeploymentsEnvironmentEntriesPresenter(final Event<SettingsSectionChange<DeploymentDescriptorModel>> settingsSectionChangeEvent,
                                                  final MenuItem<DeploymentDescriptorModel> menuItem,
                                                  final Promises promises,
                                                  final DeploymentsEnvironmentEntriesView view,
                                                  final EnvironmentEntriesListPresenter environmentEntriesPresenters,
                                                  final ItemObjectModelFactory itemObjectModelFactory); @PostConstruct void init(); @Override Promise<Void> setup(final DeploymentDescriptorModel model); void addNewEnvironmentEntry(); @Override SectionView<?> getView(); @Override int currentHashCode();  }
@Test public void testAddNewEnvironmentEntry() { presenter.addNewEnvironmentEntry(); verify(environmentEntriesListPresenter).add(itemObjectModelFactory.newItemObjectModel("","")); verify(presenter).fireChangeEvent(); }