@Test
    void testExactMatchTokenization() {
        SearchDefinition sd = new SearchDefinition("testsd");
        Index index = new Index("testexact");
        index.setExact(true, null);
        sd.addIndex(index);
        IndexFacts facts = new IndexFacts(new IndexModel(sd));

        Query q = new Query("?query=" + enc("a/b foo.com") + "&default-index=testexact");
        q.getModel().setExecution(new Execution(Execution.Context.createContextStub(facts)));
        assertEquals("WEAKAND(100) testexact:a/b testexact:foo.com", q.getModel().getQueryTree().getRoot().toString());
        q = new Query("?query=" + enc("a/b foo.com"));
        assertEquals("WEAKAND(100) (AND a b) (AND foo com)", q.getModel().getQueryTree().getRoot().toString());
    }
Check default index propagates correctly to the tokenizer.

@author Steinar Knutsen
container-search/src/test/java/com/yahoo/prelude/query/parser/test/ExactMatchAndDefaultIndexTestCase.java