static JsonNode renderRequestHandlers(JdiscBindingsConfig bindingsConfig,
                                          Map<ComponentId, ? extends RequestHandler> handlersById) {
        ArrayNode ret = jsonMapper.createArrayNode();

        for (Map.Entry<ComponentId, ? extends RequestHandler> handlerEntry : handlersById.entrySet()) {
            String id = handlerEntry.getKey().stringValue();
            RequestHandler handler = handlerEntry.getValue();

            ObjectNode handlerJson = renderComponent(handler, handlerEntry.getKey());
            addBindings(bindingsConfig, id, handlerJson);
            ret.add(handlerJson);
        }
        return ret;
    }
@Test
    void request_handlers_are_rendered() {
        final String id = "myHandler";
        final String serverBinding1 = "http://*/serverBinding";
        final String serverBinding2 = "http://*/anotherServerBinding";
        final String clientBinding = "http://*/clientBinding";

        HashMap<ComponentId, RequestHandler> handlersById = new HashMap<>();
        handlersById.put(new ComponentId(id), Mockito.mock(RequestHandler.class));

        JdiscBindingsConfig bindingsConfig = new JdiscBindingsConfig(new JdiscBindingsConfig.Builder()
                .handlers(id, new Handlers.Builder()
                        .serverBindings(serverBinding1)
                        .serverBindings(serverBinding2)
                        .clientBindings(clientBinding))
        );
        String json = ApplicationStatusHandler.renderRequestHandlers(bindingsConfig, handlersById).toString();
        assertTrue(json.contains("\"" + id + "\""));
        assertTrue(json.contains(serverBinding1));
        assertTrue(json.contains(serverBinding2));
        assertTrue(json.contains(clientBinding));
    }