@Test
public void testGetInputSerializedSize() throws Exception {

    Method method = EchoService.class.getMethod("echo", EchoRequest.class);
    JprotobufRpcMethodInfo rpcMethodInfo = new JprotobufRpcMethodInfo(method);
    EchoRequest request = new EchoRequest();
    request.setMessage("hello");
    Assert.assertTrue(rpcMethodInfo.getInputSerializedSize(request)
            == Echo.EchoRequest.newBuilder().setMessage("hello").build().getSerializedSize());
}