@Test
    void testXmlRenderingOfDynamicSummary() throws Exception {
        String content = "\uFFF9Feeding\uFFFAfeed\uFFFB \u001F\uFFF9documents\uFFFAdocument\uFFFB\u001F into Vespa \uFFF9is\uFFFAbe\u001Eincrement of a set of \u001F\uFFF9documents\uFFFAdocument\uFFFB\u001F fed into Vespa \uFFF9is\u001Efloat in XML when \u001Fdocument\u001F attribute \uFFF9is\uFFFAbe\uFFFB int\u001E";
        Result result = createResult("one", content, true);

        String summary = render(result);

        String expected =
                "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n" +
                        "<result total-hit-count=\"0\">\n" +
                        "  <hit relevancy=\"1.0\">\n" +
                        "    <field name=\"relevancy\">1.0</field>\n" +
                        "    <field name=\"sddocname\">one</field>\n" +
                        "    <field name=\"dynteaser\">Feeding <hi>documents</hi> into Vespa is<sep />increment of a set of <hi>documents</hi> fed into Vespa <sep />float in XML when <hi>document</hi> attribute is int<sep /></field>\n" +
                        "  </hit>\n" +
                        "</result>\n";
        assertEquals(expected, summary);
    }
Test the XML renderer

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