### Question:
MultyBulkRedisReply extends CommonRedisReply implements Serializable { public void setCount(int count) { this.count = count; } MultyBulkRedisReply(); void setCount(int count); List<IRedisReply> getList(); int getCount(); @Override void doEncode(ByteBuf out); void addReply(IRedisReply reply);  }### Answer:
@Test public void encodeByNull(){ ByteBuf buf = Unpooled.buffer(); MultyBulkRedisReply redisReply = new MultyBulkRedisReply(); redisReply.setCount(-1); redisReply.encode(buf); assertEquals(Type.MULTYBULK,redisReply.getType()); assertTrue(buf.isReadable()); assertEquals("*-1",readToStr(buf,3)); assertEquals(RedisConstants.CR_BYTE,(char)buf.readByte()); assertEquals(RedisConstants.LF_BYTE,(char)buf.readByte()); }