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