### Question:
DependenciesPresenter extends Section<ProjectScreenModel> { public void removeAllFromWhiteList(final Set<String> packages) { model.getWhiteList().removeAll(packages); enhancedDependenciesManager.update(); } @Inject  DependenciesPresenter(final View view,
                                 final Promises promises,
                                 final MenuItem<ProjectScreenModel> menuItem,
                                 final DependencySelectorPopup dependencySelectorPopup,
                                 final Event<SettingsSectionChange<ProjectScreenModel>> settingsSectionChangeEvent,
                                 final EnhancedDependenciesManager enhancedDependenciesManager,
                                 final ManagedInstance<DependenciesItemPresenter> presenters); @Override Promise<Void> setup(final ProjectScreenModel model); @Override Promise<Object> validate(); void addNewDependency(); void addAllToWhiteList(final Set<String> packages); void removeAllFromWhiteList(final Set<String> packages); void addFromRepository(); void remove(final EnhancedDependency enhancedDependency); @Override int currentHashCode(); @Override SectionView<?> getView();  }### Answer:
@Test public void testRemoveAllFromWhiteList() { final Set<String> packages = new HashSet<>(Arrays.asList("foo", "bar")); dependenciesPresenter.model = mock(ProjectScreenModel.class); doReturn(new WhiteList(packages)).when(dependenciesPresenter.model).getWhiteList(); assertEquals(2, dependenciesPresenter.model.getWhiteList().size()); dependenciesPresenter.removeAllFromWhiteList(packages); assertEquals(0, dependenciesPresenter.model.getWhiteList().size()); verify(enhancedDependenciesManager).update(); }