public HttpRequestHandler getJolokiaRequestHandler() {
        return requestHandler;
    }
@Test
    public void jolokiaPlatformHttpPluginContextTest() throws Exception {
        PlatformHttpPluginRegistry registry = resolvePlatformHttpPluginRegistry();
        Assertions.assertNotNull(registry);
        DefaultJolokiaPlatformHttpPlugin plugin = registry
                .resolvePluginById("jolokia", DefaultJolokiaPlatformHttpPlugin.class).orElseThrow();
        Assertions.assertNotNull(plugin);
        HttpRequestHandler handler = plugin.getJolokiaRequestHandler();

        JSONStructure json = handler.handleGetRequest("", "/", new HashMap<>());

        JSONParser parser = new JSONParser();
        JSONObject responseBody = (JSONObject) parser.parse(json.toJSONString());

        JSONObject value = (JSONObject) responseBody.get("value");
        String agentVersion = (String) value.get("agent");

        JSONObject request = (JSONObject) responseBody.get("request");
        String type = (String) request.get("type");

        assertEquals("version", type);
        assertEquals("2.1.0", agentVersion);
    }