public class TestSetTransactionTimeout extends TestCase {
public void test() throws NotSupportedException,
SystemException, IllegalStateException, RollbackException {
javax.transaction.TransactionManager tm = new TransactionManagerImple();
tm.begin();
javax.transaction.Transaction theTransaction = tm.getTransaction();
theTransaction.enlistResource(new XAResource() {
public void commit(Xid arg0, boolean arg1) throws XAException {