@Test
public void testRegisterListenerAborting() {
final DummyTransactionListener listener =
new DummyTransactionListener();
final Exception[] exception = { null };
DummyTransactionParticipant participant =
new DummyTransactionParticipant() {
public void abort(Transaction txn) {
try {
txn.registerListener(listener);
} catch (Exception e) {
exception[0] = e;