Capabilities getCapabilitiesFromResponseBody(String responseBody) {
        final CapabilitiesDTO capabilitiesDTO = FORCED_EXPOSE_GSON.fromJson(responseBody, CapabilitiesDTO.class);
        return capabilitiesConverterV5.fromDTO(capabilitiesDTO);
    }
@Test
    public void shouldGetCapabilitiesFromResponseBody() {
        String responseBody = "{" +
                "    \"supports_plugin_status_report\":\"true\"," +
                "    \"supports_cluster_status_report\":\"true\"," +
                "    \"supports_agent_status_report\":\"true\"" +
                "}";

        Capabilities capabilities = new ElasticAgentExtensionConverterV5().getCapabilitiesFromResponseBody(responseBody);

        assertTrue(capabilities.supportsPluginStatusReport());
        assertTrue(capabilities.supportsClusterStatusReport());
        assertTrue(capabilities.supportsAgentStatusReport());
    }