public static String getContentString(HttpContent httpContent) throws IOException {
    ByteArrayOutputStream out = new ByteArrayOutputStream();
    httpContent.content().readBytes(out, httpContent.content().readableBytes());
    return out.toString(StandardCharsets.UTF_8.name());
  }
Converts the content in {@code httpContent} to a human readable string.
@param httpContent the {@link HttpContent} whose content needs to be converted to a human readable string.
@return content that is inside {@code httpContent} as a human readable string.
@throws IOException
ambry-rest/src/test/java/com/github/ambry/rest/RestTestUtils.java