public void basicTest() throws Exception
{
XATerminator xt = adapter.ctx.getXATerminator();
WorkManager wm = adapter.ctx.getWorkManager();
TestWork work = new TestWork();
ExecutionContext ec = new ExecutionContext();
Xid xid = new MyXid(1);
ec.setXid(xid);
wm.doWork(work, 0l, ec, null);
if (work.complete == false)
throw new Exception("Work was not done");
if (work.e != null)