@Override
    public void run() {
      try {
        int[] messageSize = new int[] { 100, 1000, 10000 };
        for (int i = 0; i < messageSize.length; i++) {
          String input = RandomStringUtils.random(messageSize[i]);
          String result =
            stub.echo(null, TestProtos.EchoRequestProto.newBuilder().setMessage(input).build())
              .getMessage();
          assertEquals(input, result);
        }
      } catch (org.apache.hbase.thirdparty.com.google.protobuf.ServiceException e) {
        throw new RuntimeException(e);
      }
    }
Sets up a RPC Server and a Client. Does a RPC checks the result. If an exception is thrown from
the stub, this function will throw root cause of that exception.
hbase-server/src/test/java/org/apache/hadoop/hbase/security/AbstractTestSecureIPC.java