public String serverPingRequestBody(List<Map<String, String>> clusterProfileConfigurations) {
        JsonObject jsonObject = new JsonObject();
        jsonObject.add("all_cluster_profile_properties", mapToJsonArray(clusterProfileConfigurations));
        return FORCED_EXPOSE_GSON.toJson(jsonObject);
    }
@Test
    public void shouldJSONizeServerPingRequestBody() throws Exception {
        HashMap<String, String> clusterProfileConfiguration1 = new HashMap<>();
        clusterProfileConfiguration1.put("property_name", "property_value");
        HashMap<String, String> clusterProfileConfiguration2 = new HashMap<>();
        clusterProfileConfiguration2.put("property_name_1", "property_value_1");
        clusterProfileConfiguration2.put("property_name_2", "property_value_2");
        String actual = new ElasticAgentExtensionConverterV5().serverPingRequestBody(List.of(clusterProfileConfiguration1, clusterProfileConfiguration2));

        String expected = "{" +
                "  \"all_cluster_profile_properties\":[" +
                "      {" +
                "        \"property_name\":\"property_value\"" +
                "      }," +
                "      {" +
                "        \"property_name_1\":\"property_value_1\"," +
                "        \"property_name_2\":\"property_value_2\"" +
                "      }" +
                "    ]" +
                "}";

        assertThatJson(expected).isEqualTo(actual);
    }