lifecycleEvent.fire(new BeforeTransactionEnded());
transactionProvider = getTransactionProvider();
TransactionalTest transactionalTest =
new TransactionalTestImpl(getTransactionManager(afterTest));
if (transactionMode == TransactionMode.ROLLBACK || isTestRequiresRollback()) {
// rollbacks the transaction
transactionProvider.rollbackTransaction(transactionalTest);
} else {