DeploymentsMarshallingStrategiesPresenter extends Section<DeploymentDescriptorModel> { public void addNewMarshallingStrategy() { marshallingStrategyPresenters.add(itemObjectModelFactory.newItemObjectModel("")); fireChangeEvent(); } @Inject  DeploymentsMarshallingStrategiesPresenter(final Event<SettingsSectionChange<DeploymentDescriptorModel>> settingsSectionChangeEvent,
                                                     final MenuItem<DeploymentDescriptorModel> menuItem,
                                                     final Promises promises,
                                                     final DeploymentsMarshallingStrategiesView view,
                                                     final MarshallingStrategiesListPresenter marshallingStrategyPresenters,
                                                     final ItemObjectModelFactory itemObjectModelFactory); @PostConstruct void init(); @Override Promise<Void> setup(final DeploymentDescriptorModel model); void addNewMarshallingStrategy(); @Override SectionView<?> getView(); @Override int currentHashCode();  }
@Test public void testAddMarshallingStrategy() { presenter.addNewMarshallingStrategy(); verify(marshallingStrategiesListPresenter).add(itemObjectModelFactory.newItemObjectModel("")); verify(presenter).fireChangeEvent(); }