DeploymentsEventListenersPresenter extends Section<DeploymentDescriptorModel> { public void addNewEventListener() { eventListenerPresenters.add(itemObjectModelFactory.newItemObjectModel("")); fireChangeEvent(); } @Inject  DeploymentsEventListenersPresenter(final Event<SettingsSectionChange<DeploymentDescriptorModel>> settingsSectionChangeEvent,
                                              final MenuItem<DeploymentDescriptorModel> menuItem,
                                              final Promises promises,
                                              final DeploymentsEventListenersView view,
                                              final EventListenersListPresenter eventListenerPresenters,
                                              final ItemObjectModelFactory itemObjectModelFactory); @PostConstruct void init(); @Override Promise<Void> setup(final DeploymentDescriptorModel model); void addNewEventListener(); @Override SectionView<?> getView(); @Override int currentHashCode();  }
@Test public void testAddNewEventListener() { presenter.addNewEventListener(); verify(eventListenersListPresenter).add(itemObjectModelFactory.newItemObjectModel("")); verify(presenter).fireChangeEvent(); }