Assert.assertFalse(sa.transactionAlive(txType, txid));
Assert.assertFalse(sa.transactionComplete(txType, txid));
sa.cleanup(txType, txid);
Assert.assertTrue(sa.transactionComplete(txType, txid));
try {
txw.run(txType, txid, new Callable<Object>() {
@Override
public Object call() throws Exception {
Assert.fail("Should not be able to start a new work on a discontinued transaction");
return null;
}