//session should have been started, and a cache is in use. Assert that the SessionDAO is still using
//the cache instances provided by our custom CacheManager and not the Default MemoryConstrainedCacheManager
SessionDAO sessionDAO = ((DefaultSessionManager) ((DefaultSecurityManager) sm).getSessionManager()).getSessionDAO();
assertTrue(sessionDAO instanceof EnterpriseCacheSessionDAO);
CachingSessionDAO cachingSessionDAO = (CachingSessionDAO) sessionDAO;
Cache activeSessionsCache = cachingSessionDAO.getActiveSessionsCache();
assertTrue(activeSessionsCache instanceof MapCache);
MapCache mapCache = (MapCache) activeSessionsCache;
//this is the line that verifies Caches created by our specific CacheManager are not overwritten by the
//default cache manager's caches: