public String getJobCompletionRequestBody(String elasticAgentId, JobIdentifier jobIdentifier) {
        JsonObject jsonObject = new JsonObject();
        jsonObject.addProperty("elastic_agent_id", elasticAgentId);
        jsonObject.add("job_identifier", jobIdentifierJson(jobIdentifier));
        return FORCED_EXPOSE_GSON.toJson(jsonObject);
    }
@Test
    public void shouldJSONizeJobCompletionRequestBody() throws Exception {
        String actual = new ElasticAgentExtensionConverterV4().getJobCompletionRequestBody("ea1", jobIdentifier);

        String expected = """
                {  "elastic_agent_id":"ea1",  "job_identifier": {
                    "pipeline_name": "test-pipeline",
                    "pipeline_counter": 1,
                    "pipeline_label": "Test Pipeline",
                    "stage_name": "test-stage",
                    "stage_counter": "1",
                    "job_name": "test-job",
                    "job_id": 100
                  }
                }""";

        assertThatJson(expected).isEqualTo(actual);
    }