@Test
    void testThatMaxRepeatedTermsInPhraseIs10() {
        Result r = execution.search(new Query("/search/?query=%220.a.1.a.2.a.3.a.4.a.5.a.6.a.7.a.9.a%22"));
        assertNull(r.hits().getErrorHit());
        r = execution.search(new Query("/search/?query=%220.a.1.a.2.a.3.a.4.a.5.a.6.a.7.a.8.a.9.a.10.a%22"));
        assertNotNull(r.hits().getErrorHit());
        assertEquals("Phrase contains more than 10 occurrences of term 'a' in phrase : \"0 a 1 a 2 a 3 a 4 a 5 a 6 a 7 a 8 a 9 a 10 a\"",
                r.hits().getErrorHit().errorIterator().next().getDetailedMessage());
    }
Functional test for InputCheckingSearcher.

@author Steinar Knutsen
container-search/src/test/java/com/yahoo/search/searchers/test/InputCheckingSearcherTestCase.java