assert !((TransactionCompletedEvent) cl.getEvents().get(1)).isTransactionSuccessful();
assert ((TransactionCompletedEvent) cl.getEvents().get(1)).getGlobalTransaction() == tx;
}
public void testNotifyTransactionRegistered() {
InvocationContext ctx = new NonTxInvocationContext();
GlobalTransaction tx = createNiceMock(GlobalTransaction.class);
n.notifyTransactionRegistered(tx, ctx);
n.notifyTransactionRegistered(tx, ctx);
assert cl.getInvocationCount() == 2;