private String render(Result result) throws Exception {
        XmlRenderer renderer = new XmlRenderer();
        renderer.init();
        ByteArrayOutputStream bs = new ByteArrayOutputStream();
        CompletableFuture<Boolean> f = renderer.renderResponse(bs, result, null, null);
        assertTrue(f.get());
        return Utf8.toString(bs.toByteArray());
    }
Test the XML renderer

@author Steinar Knutsen
@author bratseth
container-search/src/test/java/com/yahoo/search/rendering/XMLRendererTestCase.java