DeploymentsWorkItemHandlersPresenter extends Section<DeploymentDescriptorModel> { public void addNewWorkItemHandler() { workItemHandlersListPresenter.add(itemObjectModelFactory.newItemObjectModel("", "")); fireChangeEvent(); } @Inject  DeploymentsWorkItemHandlersPresenter(final Event<SettingsSectionChange<DeploymentDescriptorModel>> settingsSectionChangeEvent,
                                                final MenuItem<DeploymentDescriptorModel> menuItem,
                                                final Promises promises,
                                                final DeploymentsWorkItemHandlersView view,
                                                final WorkItemHandlersListPresenter workItemHandlersListPresenter,
                                                final ItemObjectModelFactory itemObjectModelFactory); @PostConstruct void init(); @Override Promise<Void> setup(final DeploymentDescriptorModel model); void addNewWorkItemHandler(); @Override SectionView<?> getView(); @Override int currentHashCode();  }
@Test public void testAddNewWorkItemHandler() { presenter.addNewWorkItemHandler(); verify(workItemHandlersListPresenter).add(itemObjectModelFactory.newItemObjectModel("","")); verify(presenter).fireChangeEvent(); }