@Test
    public void testQueryWithDocumentFrequency() {
        var word = "hello";
        var explicitLanguage = Optional.of(Language.ENGLISH);
        var queryDocumentFrequency = Optional.of(new DocumentFrequency(1, 1));

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

        var resultDocumentFrequency = getFirstWord(result).getDocumentFrequency();
        var modelDocumentFrequency = getModelDocumentFrequencyWithEnglish(word);

        assertNotEquals(queryDocumentFrequency, modelDocumentFrequency);
        assertEquals(resultDocumentFrequency, queryDocumentFrequency);
    }
Tests significance term in the search chain.

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