//Now should not be null
CacheManager cacheManager = cmfRef.getCacheManager();
assertNotNull("CacheManager initialized", cacheManager);
Cache cache = cmfRef.getCacheManager().getCache("foo");
// Is cache alive
assertEquals("Is cache still alive", Status.STATUS_ALIVE, cache.getStatus());
context.stopRoute(ROUTE1_ID);
// Is cache still alive?
assertEquals("Is cache still alive", Status.STATUS_ALIVE, cache.getStatus());
context.stop();
// Was the cache shutdowned with context?
assertEquals("Is cache still alive", Status.STATUS_SHUTDOWN, cache.getStatus());
}