return ctx;
}
@Test
public void testCache() throws Exception {
CacheEndpoint endpoint = context.getEndpoint(CACHE_URI, CacheEndpoint.class);
// do some routes to let everything be initialized
template.sendBody("direct:add", "Hello World");
// Is CacheManagerFactory really referenced?
CacheManagerFactory cmf = endpoint.getCacheManagerFactory();
assertEquals("Cache Manager Factory Referenced", cmfRef, cmf);
// Is the right ehcache_test.xml config. loaded?
Cache cache = cmfRef.getCacheManager().getCache("testingOne");
assertNotNull("Is ehcache_test.xml loaded", cache);