@Override
    protected String getRequestData() {
        /**
         *     {
         *       "HostRoles" : { "state" : "INSTALLED" }
         *     }
         */
        JsonObject jsonObject =  new JsonObject();

        jsonObject.add("HostRoles", createJsonObject("state", desiredState.toString()));

        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/BulkSetServiceComponentHostStateWebRequest.java