}
private void assertCacheManagerWasConfigured(String cacheName)
throws Exception {
// verify that the cache manager was configured.
CompositeCacheManager cacheManager = getCacheManager();
assertNotNull(cacheManager);
// verify that the properties of the configuration file are the same as the
// ones of the cache manager.
String maxObjectsProperty = configProperties.getProperty("jcs.region."
+ cacheName + ".cacheattributes.MaxObjects");
int expected = Integer.parseInt(maxObjectsProperty);
CompositeCache cache = cacheManager.getCache(cacheName);
ICompositeCacheAttributes cacheAttributes = cache.getCacheAttributes();
int actual = cacheAttributes.getMaxObjects();
assertEquals(expected, actual);
}