public void testCASEncode() {
Command command = this.commandFactory.createCASCommand(key, key
.getBytes(), exp, value, cas, false, transcoder);
assertNull(command.getIoBuffer());
command.encode();
checkByteBufferEquals(command, "cas test 0 0 2 999\r\n10\r\n");
command = this.commandFactory.createCASCommand(key, key.getBytes(),
exp, value, cas, true, transcoder);
command.encode();
checkByteBufferEquals(command, "cas test 0 0 2 999 noreply\r\n10\r\n");