p2 = source.getModuleDefinition().getChildModuleDefinition(plugin2);
}
public void testGetSpringLocations() {
File classLocation = new File("../sample-module2/bin");
ModuleClassLoader classLoader = new ModuleClassLoader(new File[]{classLocation});
final Resource[] springConfigResources = moduleLoader.getSpringConfigResources("id", p2, classLoader);
assertEquals(1, springConfigResources.length);
assertEquals(ClassPathResource.class, springConfigResources[0].getClass());
assertEquals("class path resource [sample-module2-context.xml]", springConfigResources[0].getDescription());