### Question:
EnhancedDependenciesManager { public void delete(final EnhancedDependency enhancedDependency) { enhancedDependencies.remove(enhancedDependency); originalSetOfDependencies.remove(enhancedDependency.getDependency()); update(); } @Inject  EnhancedDependenciesManager(final DependencyLoader loader); void init(final POM pom,
                     final Callback<EnhancedDependencies> callback); void update(); void delete(final EnhancedDependency enhancedDependency); void addNew(final Dependency dependency); void validateDependency();  }### Answer:
@Test public void testDelete() throws Exception { enhancedDependenciesManager.addNew( makeDependency( "artifactId", "groupId", "1.0" ) ); enhancedDependenciesManager.delete( new NormalEnhancedDependency( makeDependency( "artifactId", "groupId", "1.0" ), new HashSet<String>() ) ); assertTrue( originalSetOfDependencies.isEmpty() ); }