public void testEncodeDecr() {
Command command = this.commandFactory.createIncrDecrCommand("test",
"test".getBytes(), 10, 0, 0, CommandType.DECR, false);
assertNull(command.getIoBuffer());
command.encode();
checkByteBufferEquals(command, "decr test 10\r\n");
command = this.commandFactory.createIncrDecrCommand("test",
"test".getBytes(), 10, 0, 0, CommandType.DECR, true);