final TransactionId id = new LocalTransactionId("sessionId", 99);
final TransactionInfo info = new TransactionInfo(id, "sessionId", TransactionType.BEGIN, null, 3);
final TransactionCommand cmd = new TransactionCommand(info, 100);
final IoBuffer buf = cmd.encode();
assertEquals("transaction TX:sessionId:99 sessionId BEGIN 3 100\r\n", new String(buf.array()));
}
@Test
public void testEncodeWithUniqueQualifier() {