" <attribute name=\"maxNodes\">5000</attribute>\n" +
" </region>\n" +
" </config>\n" +
" </attribute>";
Element oldEl = XmlConfigHelper.stringToElementInCoreNS(oldFormat);
EvictionConfig oldEvConfig = XmlConfigurationParser2x.parseEvictionConfig(oldEl);
//this will be transformed in root region, so make sure that the root region will be corectly set up
MRUAlgorithmConfig defaultAlgorithmConfig = (MRUAlgorithmConfig) oldEvConfig.getDefaultEvictionRegionConfig().getEvictionAlgorithmConfig();
assert oldEvConfig.getDefaultEvictionRegionConfig().getEventQueueSize() == 1234;
assert defaultAlgorithmConfig.getEvictionAlgorithmClassName().equals("org.jboss.cache.eviction.MRUAlgorithm");
assert defaultAlgorithmConfig.getMaxNodes() == 5001;
assert defaultAlgorithmConfig.getMinTimeToLive() == 1001000;
assert oldEvConfig.getEvictionRegionConfigs().size() == 1;
EvictionRegionConfig orgJbossData = oldEvConfig.getEvictionRegionConfigs().get(0);
assert orgJbossData.getRegionFqn().equals(Fqn.fromString("org/jboss/data"));
assert orgJbossData.getEvictionAlgorithmConfig().getEvictionAlgorithmClassName().equals("org.jboss.cache.eviction.LRUAlgorithm");
assert orgJbossData.getEventQueueSize() == 200000;
}