@Test
    @Timeout(300)
    void testGroupingWithBucket() throws InterruptedException, ExecutionException, IOException {
        String expected = "{"
                + "    \"root\": {"
                + "        \"children\": ["
                + "            {"
                + "                \"children\": ["
                + "                    {"
                + "                        \"children\": ["
                + "                            {"
                + "                                \"fields\": {"
                + "                                    \"something()\": 7"
                + "                                },"
                + "                                \"limits\": {"
                + "                                    \"from\": \"1.0\","
                + "                                    \"to\": \"2.0\""
                + "                                },"
                + "                                \"id\": \"group:double_bucket:1.0:2.0\","
                + "                                \"relevance\": 1.0"
                + "                            }"
                + "                        ],"
                + "                        \"id\": \"grouplist:customer\","
                + "                        \"label\": \"customer\","
                + "                        \"relevance\": 1.0"
                + "                    }"
                + "                ],"
                + "                \"continuation\": {"
                + "                    \"this\": \"AAAA\""
                + "                },"
                + "                \"id\": \"group:root:0\","
                + "                \"relevance\": 1.0"
                + "            }"
                + "        ],"
                + "        \"fields\": {"
                + "            \"totalCount\": 1"
                + "        },"
                + "        \"id\": \"toplevel\","
                + "        \"relevance\": 1.0"
                + "    }"
                + "}";
        Result r = newEmptyResult();
        RootGroup rg = new RootGroup(0, new Continuation() {
            @Override
            public Continuation copy() {
                return null;
            }

            @Override
            public String toString() {
                return "AAAA";
            }
        });
        GroupList gl = new GroupList("customer");
        Group g = new Group(new DoubleBucketId(1.0, 2.0), new Relevance(1.0));
        g.setField("something()", 7);
        gl.add(g);
        rg.add(gl);
        r.hits().add(rg);
        r.setTotalHitCount(1L);
        String summary = render(r);
        assertEqualJsonContent(expected, summary);
    }
Functional testing of {@link JsonRenderer}.

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