assertEquals("delistedwork" + i, textMessage.getText());
}
// once we enlist ensure that the 5 acks are merged ok, the first timne we do this there is nothing to merge in
// the global tx
// so all acks are just copied
trans.enlistResource(res1);
SessionState sstate = (SessionState)((DelegateSupport)sess1.getDelegate()).getState();
ClientTransaction clientTransaction = rm.getTx(sstate.getCurrentTxId());
assertEquals("to many session states", clientTransaction.getSessionStates().size(), 1);
ClientTransaction.SessionTxState sessionTxState = (ClientTransaction.SessionTxState)clientTransaction.getSessionStates()
.get(0);