final DummyClient client = newClient();
try {
txnScheduler.runTask(new TestAbstractKernelRunnable() {
public void run() throws Exception {
try {
channel.leave(client.getSession());
fail("Expected TransactionNotActiveException");
} catch (TransactionNotActiveException e) {
System.err.println(e);
}
}