DeploymentsRemoteableClassesPresenter extends Section<DeploymentDescriptorModel> { public void addNewRemoteableClass() { remoteableClassesListPresenter.add(new SingleValueItemObjectModel("")); fireChangeEvent(); } @Inject  DeploymentsRemoteableClassesPresenter(final Event<SettingsSectionChange<DeploymentDescriptorModel>> settingsSectionChangeEvent,
                                                 final MenuItem<DeploymentDescriptorModel> menuItem,
                                                 final Promises promises,
                                                 final DeploymentsRemoteableClassesView view,
                                                 final RemoteableClassesListPresenter remoteableClassesListPresenter); @PostConstruct void init(); @Override Promise<Void> setup(final DeploymentDescriptorModel model); void addNewRemoteableClass(); @Override SectionView<?> getView(); @Override int currentHashCode();  }
@Test public void testAddNewRemoteableClass() { presenter.addNewRemoteableClass(); verify(remoteableClassListPresenter).add(eq(new SingleValueItemObjectModel(""))); verify(presenter).fireChangeEvent(); }