@Test
    @Timeout(300)
    void trace_is_not_included_if_tracelevel_0() throws IOException, ExecutionException, InterruptedException {
        String expected =
                "{" +
                        "  \"root\": {" +
                        "    \"id\": \"toplevel\"," +
                        "    \"relevance\": 1.0," +
                        "    \"fields\": {" +
                        "      \"totalCount\": 0" +
                        "    }" +
                        "  }" +
                        "}";
        Query q = new Query("/?query=a&tracelevel=0");
        Execution execution = new Execution(Execution.Context.createContextStub());
        Result r = new Result(q);
        execution.search(q);
        q.getContext(true).setProperty("prop-key", "prop-value");
        String summary = render(execution, r);
        assertEqualJson(expected, summary);
    }
Functional testing of {@link JsonRenderer}.

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