### Question:
DependenciesItemPresenter { public void remove() { parentPresenter.remove(enhancedDependency); } @Inject  DependenciesItemPresenter(final View view); DependenciesItemPresenter setup(final EnhancedDependency enhancedDependency,
                                           final WhiteList whiteList,
                                           final DependenciesPresenter dependenciesPresenter); void onGroupIdChange(final String groupId); void onArtifactIdChange(final String artifactId); void onVersionChange(final String version); void addAllPackagesToWhiteList(); void removeAllPackagesFromWhiteList(); void remove(); View getView();  }### Answer:
@Test public void testRemove() { final DependenciesPresenter parentPresenter = mock(DependenciesPresenter.class); final EnhancedDependency enhancedDependency = new NormalEnhancedDependency(mock(Dependency.class), emptySet()); dependenciesItemPresenter.parentPresenter = parentPresenter; dependenciesItemPresenter.enhancedDependency = enhancedDependency; dependenciesItemPresenter.remove(); verify(parentPresenter).remove(eq(enhancedDependency)); }