@Test
public void testInputDecode2() throws Exception {

    Method method = EchoService.class.getMethod("echo", EchoRequest.class);
    JprotobufRpcMethodInfo rpcMethodInfo = new JprotobufRpcMethodInfo(method);
    Echo.EchoRequest request = Echo.EchoRequest.newBuilder().setMessage("hello").build();
    byte[] bytes = request.toByteArray();
    ByteBuf byteBuf = Unpooled.wrappedBuffer(bytes);
    EchoRequest request1 = (EchoRequest) rpcMethodInfo.inputDecode(byteBuf);
    Assert.assertTrue(request1.getMessage().equals(request.getMessage()));
}