public String getPluginStatusReportRequestBody(List<Map<String, String>> clusterProfiles) {
        JsonObject jsonObject = new JsonObject();
        jsonObject.add("all_cluster_profiles_properties", mapToJsonArray(clusterProfiles));
        return FORCED_EXPOSE_GSON.toJson(jsonObject);
    }
@Test
    public void shouldJSONizePluginStatusRequestBody() {
        Map<String, String> clusterProfile1 = new HashMap<>();
        clusterProfile1.put("key1", "value1");
        clusterProfile1.put("key2", "value2");

        List<Map<String, String>> clusterProfileConfigurations = new ArrayList<>();
        clusterProfileConfigurations.add(clusterProfile1);
        clusterProfileConfigurations.add(clusterProfile1);

        String json = new ElasticAgentExtensionConverterV5().getPluginStatusReportRequestBody(clusterProfileConfigurations);

        assertThatJson(json).isEqualTo("{" +
                "  \"all_cluster_profiles_properties\":[" +
                "    {" +
                "      \"key1\":\"value1\"," +
                "      \"key2\":\"value2\"" +
                "    }," +
                "    {" +
                "      \"key1\":\"value1\"," +
                "      \"key2\":\"value2\"" +
                "    }" +
                "  ]" +
                "}");
    }