@Test
    public void testQueryWithSignificance() {
        var word = "hello";
        var explicitLanguage = Optional.of(Language.ENGLISH);
        var querySignificance = Optional.of(0.6);

        var result = searchWord(
                word,
                explicitLanguage,
                Optional.empty(),
                Optional.empty(),
                querySignificance
        );

        var resultSignificance = getFirstWord(result).getSignificance();
        assertEquals(querySignificance.get(), resultSignificance);

        var resultDocumentFrequency = getFirstWord(result).getDocumentFrequency();
        assertEquals(resultDocumentFrequency, Optional.empty());
    }
Tests significance term in the search chain.

@author MariusArhaug
container-search/src/test/java/com/yahoo/search/significance/test/SignificanceSearcherTest.java