@Test
  public void testGetShortTextFormatCoprocessorServiceRequest() {
    ClientProtos.CoprocessorServiceCall call = ClientProtos.CoprocessorServiceCall.newBuilder()
      .setRow(ByteString.copyFrom(Bytes.toBytes("foo"))).setMethodName("awesomeMethod")
      .setServiceName("awesomeService")
      .setRequest(ByteString.copyFrom(Bytes.toBytes("foo-request"))).build();

    ClientProtos.CoprocessorServiceRequest.Builder builder =
      ClientProtos.CoprocessorServiceRequest.newBuilder();
    builder.setRegion(REGION);
    builder.setCall(call);
    ClientProtos.CoprocessorServiceRequest coprocessorServiceRequest = builder.build();

    String actual = ProtobufUtil.getShortTextFormat(coprocessorServiceRequest);

    assertNotNull(actual);
    assertEquals("coprocessorService= awesomeService:awesomeMethod", actual);
  }
Used to confirm that we only consider truncatedMessage as EOF
hbase-client/src/test/java/org/apache/hadoop/hbase/shaded/protobuf/TestProtobufUtil.java