private Decoder decoder;
public void testDecode() {
decoder = new MemcachedCodecFactory().getDecoder();
MemcachedTCPSession session = buildSession();
Command versionCommand = new TextCommandFactory().createVersionCommand(
new CountDownLatch(1), null);
session.addCommand(versionCommand);
Command decodedCommand = (Command) decoder.decode(IoBuffer
.wrap(ByteBuffer.wrap("VERSION 1.28\r\n".getBytes())), session);
assertSame(decodedCommand, versionCommand);