GlobalComponentRegistry gcr = TestingUtil.extractGlobalComponentRegistry(this.cacheManager);
Interpreter interpreter = gcr.getComponent(Interpreter.class);
String sessionId = interpreter.createSessionId(BasicCacheContainer.DEFAULT_CACHE_NAME);
interpreter.execute(sessionId, "create newcache;");
assert cacheManager.cacheExists("newcache");
interpreter.execute(sessionId, "create anothercache like newcache;");
assert cacheManager.cacheExists("anothercache");
}
public void testUpgrade() throws Exception {
GlobalComponentRegistry gcr = TestingUtil.extractGlobalComponentRegistry(this.cacheManager);