### Question:
MavenRepository implements ClassLoaderFactory { protected void notifyUpdatedPom( MavenId mavenId ) { this.classLoaders.notifyChangeInDependencies(mavenId); } MavenRepository( final MavenUrlProvider urlProvider ); ClassLoader getClassLoader( ClassLoader parent,
                                       MavenId... mavenIds ); ClassLoader getClassLoader( String... coordinates ); ClassLoader getClassLoader( ClassLoader parent,
                                       String... coordinates ); boolean exists( MavenId mavenId ); Set<MavenId> exists( MavenId firstId,
                                MavenId... mavenIds ); List<MavenDependency> getDependencies( MavenId mavenId ); URL getUrl( MavenId mavenId,
                       ArtifactType artifactType,
                       SignatureType signatureType ); URL getUrl( MavenId mavenId,
                       ArtifactType artifactType,
                       SignatureType signatureType,
                       boolean createIfRequired );  }### Answer:
@Test public void shouldAdjustClasspathForProjectWhoseDependenciesAreChanged() throws Exception { startRepository(); loadTestLibraries(); loadTestLibrary("org.jboss.example:ProjectG:1.0", "test/dependency/case1/testProjectG.xml"); checkClasspath(new MavenId[] {projectG}, new MavenId[] {projectG, projectC, projectE, projectD, projectA}); loadTestLibrary("org.jboss.example:ProjectG:1.0", "test/dependency/case1/testProjectG-withNoExclusions.xml"); maven.notifyUpdatedPom(projectG); checkClasspath(new MavenId[] {projectG}, new MavenId[] {projectG, projectC, projectE, projectD, projectA, projectB}); }