@Test
    void testExactMatching() {
        assertExactIsWorking("test");
        assertExactIsWorking("artist_name_ft_norm1");

        Query query = new Query();
        query.getModel().getSources().add("three");
        IndexFacts.Session threeSession = createIndexFacts().newSession(query);
        IndexFacts.Session nullSession = createIndexFacts().newSession(new Query());

        Index d3 = threeSession.getIndex("d");
        assertTrue(d3.isExact());
        assertEquals(" ", d3.getExactTerminator());

        Index e = nullSession.getIndex("e");
        assertTrue(e.isExact());
        assertEquals("kj(/&", e.getExactTerminator());

        Index a = nullSession.getIndex("a");
        assertFalse(a.isExact());
        assertNull(a.getExactTerminator());

        Index wem = threeSession.getIndex("twewm");
        assertTrue(wem.isExact());
        assertNull(wem.getExactTerminator());
    }
Tests using synthetic index names for IndexFacts class.

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