}
public void testDangling() throws Exception {
Interpreter interpreter = getInterpreter();
String sessionId = interpreter.createSessionId(BasicCacheContainer.DEFAULT_CACHE_NAME);
interpreter.execute(sessionId, "begin; put 'a' 'a';");
assert cache.getAdvancedCache().getTransactionManager().getTransaction() == null;
assert !cache.containsKey("a");
interpreter.execute(sessionId, "start; put 'a' 'a';");
assert cache.getAdvancedCache().getBatchContainer().getBatchTransaction() == null;
assert !cache.containsKey("a");