DeploymentsRemoteableClassesPresenter extends Section<DeploymentDescriptorModel> { @Override public Promise<Void> setup(final DeploymentDescriptorModel model) { if (model.getRemotableClasses() == null) { model.setRemotableClasses(new ArrayList<>()); } remoteableClassesListPresenter.setup( view.getRemoteableClassesTable(), model.getRemotableClasses(), (clazz, presenter) -> presenter.setup(clazz, this)); return promises.resolve(); } @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 testSetup() { final DeploymentDescriptorModel model = new DeploymentDescriptorModel(); presenter.setup(model); assertNotNull(model.getRemotableClasses()); verify(remoteableClassListPresenter).setup(any(), any(), any()); }