@Test
    void testResetSorting() {
        Query q = new Query();
        q.getRanking().setSorting((Sorting) null);
        q.getRanking().setSorting((String) null);
    }
Test setting sorting to null does not cause an exception.
container-search/src/test/java/com/yahoo/search/query/test/RankingTestCase.java