@Test
public void testGetOutputSerializedSize() throws Exception {

    Method method = EchoService.class.getMethod("echo", Echo.EchoRequest.class);
    ProtobufRpcMethodInfo rpcMethodInfo = new ProtobufRpcMethodInfo(method);
    Echo.EchoResponse response = Echo.EchoResponse.newBuilder().setMessage("hello").build();
    Assert.assertTrue(rpcMethodInfo.getOutputSerializedSize(response) == response.getSerializedSize());
}