Properties properties = new Properties();
properties.setProperty(ModuleElementNames.CONFIG_LOCATIONS_ELEMENT, "loc1,loc2");
properties.put(ModuleElementNames.DEPENDENCIES_ELEMENT, "module1,module2, module3 , module4 module5");
ModuleDefinition moduleDefinition = reader.readModuleDefinition(null, "rootModule", properties);
SimpleRootModuleDefinition definition = (SimpleRootModuleDefinition) moduleDefinition;
assertEquals(Arrays.asList(new String[]{"loc1", "loc2"}), definition.getConfigLocations());
assertEquals(Arrays.asList(new String[]{ "module1", "module2", "module3", "module4", "module5"}), moduleDefinition.getDependentModuleNames(false));
}