@Test
public void testOutputDecodeDynamicCompositeByteBuf() throws Exception {

    Method method = EchoService.class.getMethod("echo", EchoRequest.class);
    JprotobufRpcMethodInfo rpcMethodInfo = new JprotobufRpcMethodInfo(method);
    Echo.EchoResponse response = Echo.EchoResponse.newBuilder().setMessage("hello").build();
    byte[] bytes = response.toByteArray();
    ByteBuf buf = Unpooled.wrappedBuffer(bytes);
    DynamicCompositeByteBuf compositeByteBuf = new DynamicCompositeByteBuf(buf);
    EchoResponse response1 = (EchoResponse) rpcMethodInfo.outputDecode(compositeByteBuf);
    Assert.assertTrue(response1.getMessage().equals(response.getMessage()));
}