@Test
    void testSignificanceUseModel() {
        var query = new Query("?query=test");
        var ranking = query.getRanking();
        assertTrue(ranking.getSignificance().getUseModel().isEmpty());

        var query1 = new Query("?query=test&ranking.significance.useModel=true");
        var ranking1 = query1.getRanking();
        assertEquals(true, ranking1.getSignificance().getUseModel().get());

        var query2 = new Query("?query=test&ranking.significance.useModel=false");
        var ranking2 = query2.getRanking();
        assertEquals(false, ranking2.getSignificance().getUseModel().get());
    }
Test setting sorting to null does not cause an exception.
container-search/src/test/java/com/yahoo/search/query/test/RankingTestCase.java