assertEquals(expectedCachedObject, cacheElement.getVal());
}
private ICacheElement getCacheElement(int keyAndModelIndex) {
KeyAndModel keyAndModel = getKeyAndModel(keyAndModelIndex);
JcsCachingModel model = (JcsCachingModel) keyAndModel.model;
String cacheName = model.getCacheName();
CompositeCache cache = cacheManager.getCache(cacheName);
GroupId groupId = new GroupId(cacheName, model.getGroup());
GroupAttrName groupAttrName = new GroupAttrName(groupId, keyAndModel.key);
return cache.get(groupAttrName);
}