public static JsonNode renderChains(ComponentRegistry<? extends Chain<?>> chains) {
        ObjectNode ret = jsonMapper.createObjectNode();
        for (Chain<?> chain : chains.allComponents()) {
            ret.set(chain.getId().stringValue(), renderAbstractComponents(chain.components()));
        }
        return ret;
    }
@Test
    void chains_are_rendered()  {
        ChainRegistry<Processor> chains = new ChainRegistry<>();
        Chain<Processor> chain = new Chain<>("myChain", new VoidProcessor(new ComponentId("voidProcessor")));
        chains.register(new ComponentId("myChain"), chain);

        String json = ApplicationStatusHandler.renderChains(chains).toString();
        assertTrue(json.contains("myChain"));
        assertTrue(json.contains("voidProcessor"));
    }