ICacheElement cacheElement = getCacheElement(keyAndModelIndex);
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());