### Question:
DependenciesPresenter extends Section<ProjectScreenModel> { public void remove(final EnhancedDependency enhancedDependency) { enhancedDependenciesManager.delete(enhancedDependency); } @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 testRemove() { final EnhancedDependency enhancedDependency = mock(EnhancedDependency.class); dependenciesPresenter.remove(enhancedDependency); verify(enhancedDependenciesManager).delete(eq(enhancedDependency)); }