throw new RuntimeException("Cannot load [" + location + "], it is not found or your location of the file " +
"is incorrect. You have declared that your test [" + testClassName +"] requires " +
"a configuration file, but the file cannot be loaded. Check the setting of the " +
"org.rioproject.test.config system property");
}
ConfigObject config = new ConfigSlurper().parse(url);
Map<String, Object> configMap = config.flatten();
if (hasConfigurationFor(component, configMap)) {
groups = getString(configMap.get(component + ".groups"));
if (groups != null)
System.setProperty(Constants.GROUPS_PROPERTY_NAME, groups);