assertEquals("name2", uncommentedNames.get(1));
}
public void testGetModuleDefinitionGraph() {
moduleDefinitionSource.setResource(new ClassPathResource("xmlinternal/modulegraph.xml"));
RootModuleDefinition moduleDefinition = moduleDefinitionSource.getModuleDefinition();
System.out.println(moduleDefinition);
ModuleDefinition definition1 = getDefinition(moduleDefinition, "sample-module1");
assertEquals(ModuleTypes.APPLICATION, definition1.getType());
assertEquals(Arrays.asList(new String[0]), definition1.getConfigLocations());
ModuleDefinition definition2 = getDefinition(moduleDefinition, "sample-module2");
getDefinition(definition2, "sample-module3");
getDefinition(definition2, "sample-module4");
ModuleDefinition definition5 = moduleDefinition.getSiblingModule("sample-module5");
assertNotNull(definition5);
ModuleDefinition definition = getDefinition(definition5, "sample-module6");
assertEquals(Arrays.asList("sample-module3,sample-module4,sample-module5".split(",")), definition.getDependentModuleNames(false));
}