MavenSession session = createMavenSession( getProject( "project-with-inheritance" ) );
Plugin plugin = new Plugin();
plugin.setGroupId( "org.codehaus.plexus" );
plugin.setArtifactId( "plexus-component-metadata" );
plugin.setVersion( plexusVersion );
<BUG>PluginDescriptor pluginDescriptor = pluginManager.loadPlugin( plugin, session.getCurrentProject(), session.getLocalRepository() );
assertNotNull( pluginDescriptor );</BUG>
assertNotNull( pluginDescriptor.getClassRealm() );
}
public void testMojoDescriptorRetrieval()

MavenSession session = createMavenSession( getProject( "project-with-inheritance" ) );
Plugin plugin = new Plugin();
plugin.setGroupId( "org.codehaus.plexus" );
plugin.setArtifactId( "plexus-component-metadata" );
plugin.setVersion( plexusVersion );
PluginDescriptor pluginDescriptor = pluginManager.loadPlugin( plugin, session.getLocalRepository(), session.getCurrentProject().getRemoteArtifactRepositories() );
assertNotNull( pluginDescriptor );
assertNotNull( pluginDescriptor.getClassRealm() );
}
public void testMojoDescriptorRetrieval()
