DeploymentsGlobalsPresenter extends Section<DeploymentDescriptorModel> { public void addNewGlobal() { globalPresenters.add(itemObjectModelFactory.newItemObjectModel("", "")); fireChangeEvent(); } @Inject  DeploymentsGlobalsPresenter(final Event<SettingsSectionChange<DeploymentDescriptorModel>> settingsSectionChangeEvent,
                                       final MenuItem<DeploymentDescriptorModel> menuItem,
                                       final Promises promises,
                                       final DeploymentsGlobalsView view,
                                       final GlobalsListPresenter globalPresenters,
                                       final ItemObjectModelFactory itemObjectModelFactory); @PostConstruct void init(); @Override Promise<Void> setup(final DeploymentDescriptorModel model); void addNewGlobal(); @Override SectionView<?> getView(); @Override int currentHashCode();  }
@Test public void testAddNewGlobal() { presenter.addNewGlobal(); verify(globalPresenters).add(itemObjectModelFactor.newItemObjectModel("","")); verify(presenter).fireChangeEvent(); }