public void testSimple() throws Exception {
GlobalComponentRegistry gcr = TestingUtil.extractGlobalComponentRegistry(this.cacheManager);
Interpreter interpreter = gcr.getComponent(Interpreter.class);
String sessionId = interpreter.createSessionId(BasicCacheContainer.DEFAULT_CACHE_NAME);
interpreter.execute(sessionId, "put 'a' 'b'; get 'a';");
interpreter
.execute(sessionId, "put 'c' {\"org.infinispan.cli.interpreter.MyClass\":{\"i\":5,\"x\":null,\"b\":true}};");
Object o = cache.get("c");
assert o != null;
assert o instanceof MyClass;
assert ((MyClass) o).i == 5;