assertEquals(XAResource.TMSUCCESS, ((XAResourceEndEvent) orderedEvents.get(i++)).getFlag());
// resume happens here
assertEquals(true, ((XAResourceIsSameRmEvent) orderedEvents.get(i++)).isSameRm());
assertEquals(XAResource.TMJOIN, ((XAResourceStartEvent) orderedEvents.get(i++)).getFlag());
XAResourceIsSameRmEvent evt = (XAResourceIsSameRmEvent) orderedEvents.get(i++);
XAResource src = (XAResource) evt.getSource();
XAResource comp = evt.getXAResource();
assertTrue(poolingDataSource2.findXAResourceHolder(src) != null);
assertTrue(poolingDataSource2.findXAResourceHolder(comp) != null);
assertEquals(XAResource.TMJOIN, ((XAResourceStartEvent) orderedEvents.get(i++)).getFlag());