@Override
    protected String getRequestData() {
        /**
         * {
         * "RequestInfo" : {"context" : requestContext},
         * "Body" : {"HostRoles" : {"state" : componentState}}
         * }
         */
        String content;
        JsonObject jsonObject = new JsonObject();
        jsonObject.add("RequestInfo", createJsonObject("context", requestContext));
        jsonObject.add("Body", createJsonObject("HostRoles", createJsonObject("state", componentState.toString())));
        Gson gson = new Gson();
        content = gson.toJson(jsonObject);
        return content;
    }
Constructs the request data.

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