ut.commit();
utControl.setVoidCallable(1);
utControl.replay();
MockControl synchControl = MockControl.createControl(TransactionSynchronization.class);
final TransactionSynchronization synch = (TransactionSynchronization) synchControl.getMock();
synch.beforeCommit(false);
synchControl.setVoidCallable(1);
synch.beforeCompletion();
synchControl.setVoidCallable(1);
synch.afterCommit();
synchControl.setVoidCallable(1);
synch.afterCompletion(TransactionSynchronization.STATUS_COMMITTED);
synchControl.setVoidCallable(1);
synchControl.replay();
JtaTransactionManager ptm = newJtaTransactionManager(ut);
TransactionTemplate tt = new TransactionTemplate(ptm);