XATransactionInfoReader reader = new XATransactionInfoReader();
assertTrue(reader.getPacketType() == Packet.XA_TRANSACTION_INFO);
}
public void testReadXidPacket() throws Exception {
XATransactionInfo info = (XATransactionInfo) createXidPacket();
XATransactionInfoWriter writer = new XATransactionInfoWriter();
XATransactionInfoReader reader = new XATransactionInfoReader();
byte[] data = writer.writePacketToByteArray(info);
XATransactionInfo testInfo = (XATransactionInfo) reader.readPacketFromByteArray(data);
assertPacket(testInfo, info);
}