@Override
    protected String getRequestData() {
        /**
         * {
         *   "RequestInfo" : {
         *     "query":"Hosts/host_name.in(host1,host2)"
         *   },
         *   "Body" : {
         *     "host_components": [
         *     {
         *       "HostRoles" : { "component_name" : "HIVE_CLIENT" }
         *     },
         *     {
         *       "HostRoles" : { "component_name" : "TEZ_CLIENT" }
         *     }
         *     ]
         * }
         */
        JsonObject jsonObject =  new JsonObject();
        JsonArray hostRoles = new JsonArray();

        jsonObject.add("RequestInfo", createJsonObject("query", String.format("Hosts/host_name.in(%s)", toCsv(hostNames))));

        for (String componentName : componentNames) {
            hostRoles.add(createJsonObject("HostRoles", createJsonObject("component_name", componentName)));
        }

        jsonObject.add("Body", createJsonObject("host_components", hostRoles));

        Gson gson = new Gson();
        return gson.toJson(jsonObject);
    }
Constructs the request data.

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