@Test
public void testDecodeSyncCommand() {
final SyncCommand syncCmd = new SyncCommand("test", 1, "hello".getBytes(), 0, 9999L, 0, -1);
final IoBuffer buf = syncCmd.encode();
final SyncCommand decodedCmd = (SyncCommand) this.decoder.decode(buf, null);
assertNotNull(decodedCmd);
assertEquals(9999L, decodedCmd.getMsgId());
// assertNotNull(decodedCmd.getTransactionId());
assertEquals(syncCmd, decodedCmd);
assertEquals(syncCmd.getMsgId(), decodedCmd.getMsgId());
assertFalse(buf.hasRemaining());
}