assert config.getDefaultEvictionRegionConfig().getEvictionAlgorithmConfig() instanceof MRUAlgorithmConfig;
assert config.getDefaultEvictionRegionConfig().getEventQueueSize() == 123456;
assert config.getEvictionRegionConfigs().size() == 2;
//test first region config
EvictionRegionConfig erConfig1 = config.getDefaultEvictionRegionConfig();
erConfig1.getRegionFqn().equals(Fqn.ROOT);
MRUAlgorithmConfig defaultPolicyConfig = (MRUAlgorithmConfig) erConfig1.getEvictionAlgorithmConfig();
assert defaultPolicyConfig.getMaxNodes() == 6;
assert defaultPolicyConfig.getMinTimeToLive() == 7;
//test second region config
EvictionRegionConfig erConfig2 = config.getEvictionRegionConfigs().get(0);
assert erConfig2.getEventQueueSize() == 123456 : "Got " + erConfig2.getEventQueueSize();
assert erConfig2.getRegionFqn().equals(Fqn.fromString("/org/jboss/data"));
MRUAlgorithmConfig mruConfiguration = (MRUAlgorithmConfig) erConfig2.getEvictionAlgorithmConfig();
assert mruConfiguration.getMinTimeToLive() == 1002;
assert mruConfiguration.getMaxNodes() == 2021;
//test 3rd region config
EvictionRegionConfig erConfig3 = config.getEvictionRegionConfigs().get(1);
assert erConfig3.getEventQueueSize() == 21;
assert erConfig3.getRegionFqn().equals(Fqn.fromString("/org/jboss/xyz"));
LRUAlgorithmConfig lruConfiguration = (LRUAlgorithmConfig) erConfig3.getEvictionAlgorithmConfig();
assert lruConfiguration.getTimeToLive() == 22;
assert lruConfiguration.getMaxNodes() == 2103;
assert config.getDefaultEvictionRegionConfig().getEvictionActionPolicyClassName().equals(DefaultEvictionActionPolicy.class.getName());
}