DeploymentsRequiredRolesPresenter extends Section<DeploymentDescriptorModel> { public void addNewRequiredRole() { requiredRolesListPresenter.add(new SingleValueItemObjectModel("")); fireChangeEvent(); } @Inject  DeploymentsRequiredRolesPresenter(final Event<SettingsSectionChange<DeploymentDescriptorModel>> settingsSectionChangeEvent,
                                             final MenuItem<DeploymentDescriptorModel> menuItem,
                                             final Promises promises,
                                             final DeploymentsRequiredRolesView view,
                                             final RequiredRolesListPresenter requiredRolesListPresenter); @PostConstruct void init(); @Override Promise<Void> setup(final DeploymentDescriptorModel model); void addNewRequiredRole(); @Override SectionView<?> getView(); @Override int currentHashCode();  }
@Test public void testAdd() { presenter.addNewRequiredRole(); verify(requiredRolesListPresenter).add(eq(new SingleValueItemObjectModel(""))); verify(presenter).fireChangeEvent(); }