### Question:
FlowResponseDataDecoder implements EntityDecoder<ByteBuf, FlowTokenResponseData> { @Override public FlowTokenResponseData decode(ByteBuf source) { FlowTokenResponseData data = new FlowTokenResponseData(); if (source.readableBytes() == 8) { data.setRemainingCount(source.readInt()); data.setWaitInMs(source.readInt()); } return data; }  @Override FlowTokenResponseData decode(ByteBuf source);  }### Answer:
@Test public void testDecode() { ByteBuf buf = Unpooled.buffer(); FlowResponseDataDecoder decoder = new FlowResponseDataDecoder(); FlowTokenResponseData data = new FlowTokenResponseData(); data.setRemainingCount(12); data.setWaitInMs(13); buf.writeInt(12); buf.writeInt(13); Assert.assertEquals(decoder.decode(buf), data); }