@Test
    void testMissingSortFunction() {
        assertQueryError(
                "?query=test&sortspec=-(name)",
                "Could not set 'ranking.sorting' to '-(name)': No sort function specified at [-(][name)]");
    }
Test that the integer convenience wrapper works as documented,
throwing NumberFormatException when applied to something that
is not a number.
container-search/src/test/java/com/yahoo/prelude/test/QueryTestCase.java