@Test
    void testWeightedSet() {
        assertParse("{ \"weightedSet\" : [\"description\", {\"a\":1, \"b\":2} ]}",
                "WEIGHTEDSET description{[1]:\"a\",[2]:\"b\"}");
        assertParseFail("{ \"weightedSet\" : [\"description\", {\"a\":\"g\", \"b\":2} ]}",
                new IllegalArgumentException("Expected an integer argument, but got the string 'g'"));
        assertParseFail("{ \"weightedSet\" : [\"description\" ]}",
                new IllegalArgumentException("Expected 2 arguments, got 1."));
    }
Tests Query.Select

@author henrhoi
@author bratseth
container-search/src/test/java/com/yahoo/select/SelectTestCase.java