static <T> T makePostRequest(HttpTransport httpTransport, String url, HttpContent httpContent,
      Class<T> clazz) throws IOException {
    String result = makeRawPostRequest(httpTransport, url, httpContent);

    return new ObjectMapper().readValue(result, clazz);
  }
Util class for making OAuth requests and parsing the responses
libraries/auth/src/main/java/org/datatransferproject/auth/OAuthUtils.java