private static int parseRequestId(JsonElement jsonResponse) throws IllegalArgumentException {
        if (jsonResponse.isJsonNull()) {
            throw new IllegalArgumentException("jsonResponse with request id expected.");
        }

        JsonObject jsonObject = jsonResponse.getAsJsonObject();
        int requestId = jsonObject.get("Requests").getAsJsonObject().get("id").getAsInt();
        return requestId;
    }
Parses a JSON response string for  { "Requests" : { "id" : "2" } }

@param jsonResponse
@return - request id
@throws IllegalArgumentException
ambari-funtest/src/test/java/org/apache/ambari/funtest/server/utils/ClusterUtils.java