TransactionFactory tf = new ManagedTransactionFactory();
tf.setProperties(new Properties());
Transaction tx = tf.newTransaction(conn, false);
assertEquals(conn, tx.getConnection());
tx.commit();
tx.rollback();
tx.close();
mockery.assertIsSatisfied();
}