@Test
public void testInputDecode2() throws Exception {

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