@Test
public void testRegisterListenerPrepareAndCommitting() throws Exception {
final DummyTransactionListener listener =
new DummyTransactionListener();
final Exception[] exception = { null };
DummyTransactionParticipant participant =
new DummyTransactionParticipant() {
public void prepareAndCommit(Transaction txn)
throws Exception
{
try {
txn.registerListener(listener);