public String getClusterProfileChangedRequestBody(ClusterProfilesChangedStatus status, Map<String, String> oldClusterProfile, Map<String, String> newClusterProfile) {
        return switch (status) {
            case CREATED -> getClusterCreatedRequestBody(newClusterProfile);
            case UPDATED -> getClusterUpdatedRequestBody(oldClusterProfile, newClusterProfile);
            case DELETED -> getClusterDeletedRequestBody(oldClusterProfile);
        };
    }
@Test
    public void shouldGetClusterProfilesChangedRequestBodyWhenClusterProfileIsDeleted() {
        ClusterProfilesChangedStatus status = ClusterProfilesChangedStatus.DELETED;
        Map<String, String> oldClusterProfile = Map.of("key1", "key2");
        Map<String, String> newClusterProfile = null;

        String json = new ElasticAgentExtensionConverterV5().getClusterProfileChangedRequestBody(status, oldClusterProfile, newClusterProfile);

        assertThatJson(json).isEqualTo("{" +
                "  \"status\":\"deleted\"," +
                "  \"cluster_profiles_properties\":{" +
                "    \"key1\":\"key2\"" +
                "  }" +
                "}");
    }