@Test
    void testSignificance() {
        Query q = new Query("?query=a%20b");
        CompositeItem root = (CompositeItem) q.getModel().getQueryTree().getRoot();
        ((WordItem) root.getItem(0)).setSignificance(0.5);
        ((WordItem) root.getItem(1)).setSignificance(0.95);
        q.prepare();
        assertEquals("0.5", q.getRanking().getProperties().get("vespa.term.1.significance").get(0));
        assertEquals("0.95", q.getRanking().getProperties().get("vespa.term.2.significance").get(0));
    }
Tests that significance is transferred to rank properties by preparing the query
(which strictly is an implementation detail which we should rather hide).
container-search/src/test/java/com/yahoo/prelude/query/test/QueryCanonicalizerTestCase.java