private void assertExactIsWorking(String indexName) {
        SearchDefinition sd = new SearchDefinition("artist");

        Index index = new Index(indexName);
        index.setExact(true,"^^^");
        sd.addIndex(index);

        IndexFacts indexFacts = new IndexFacts(new IndexModel(sd));
        Query query = new Query();
        query.getModel().getSources().add("artist");
        assertTrue(indexFacts.newSession(query).getIndex(indexName).isExact());
        Query q = newQuery("?query=" + indexName + ":foo...&search=artist&type=all", indexFacts);
        assertEquals(indexName + ":foo...", q.getModel().getQueryTree().getRoot().toString());
    }
Tests using synthetic index names for IndexFacts class.

@author Steinar Knutsen
container-search/src/test/java/com/yahoo/prelude/test/IndexFactsTestCase.java