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