@Test
    @Timeout(300)
    void testDynamicSummary() 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 =
                "{  " +
                        "   \"root\":{  " +
                        "      \"id\":\"toplevel\"," +
                        "      \"relevance\":1.0," +
                        "      \"fields\":{  " +
                        "         \"totalCount\":0" +
                        "      }," +
                        "      \"children\":[  " +
                        "         {  " +
                        "            \"id\":\"http://abc.html/\"," +
                        "            \"relevance\":1.0," +
                        "            \"fields\":{  " +
                        "               \"sddocname\":\"one\"," +
                        "               \"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 />\"" +
                        "            }" +
                        "         }" +
                        "      ]" +
                        "   }" +
                        "}";
        assertEqualJson(expected, summary);
    }
Functional testing of {@link JsonRenderer}.

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