private String readString(Reader reader) throws IOException {
    BufferedReader in = new BufferedReader(reader);
    String line = null;
    StringBuilder rslt = new StringBuilder();
    while ((line = in.readLine()) != null) {
      rslt.append(line);
    }
    return rslt.toString();
  }
A property client that uses http as transport.
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/properties/HMSServletTest.java