@Override
    protected String getRequestData() {
        /**
         * { "PrivilegeInfo" : {"permission_name": userRole, "principal_name": userName, "principal_type": principalType}}
         */
        JsonObject jsonObject;
        JsonObject jsonPrivilegeInfo = new JsonObject();

        jsonPrivilegeInfo.addProperty("permission_name", userRole.toString());
        jsonPrivilegeInfo.addProperty("principal_name", userName);
        jsonPrivilegeInfo.addProperty("principal_type", principalType);
        jsonObject = createJsonObject("PrivilegeInfo", jsonPrivilegeInfo);
        Gson gson = new Gson();
        return gson.toJson(jsonObject);
    }
Gets the request data.

@return - Request data.
ambari-funtest/src/test/java/org/apache/ambari/funtest/server/api/cluster/SetUserPrivilegeWebRequest.java