@Test
    void testBasicCases() {
        // First check default behavior
        IndexFacts indexFacts = createIndexFacts();
        Query q = newQuery("?query=a:b", indexFacts);
        assertEquals("WEAKAND(100) a:b", q.getModel().getQueryTree().getRoot().toString());
        q = newQuery("?query=notarealindex:b", indexFacts);
        assertEquals("WEAKAND(100) (AND notarealindex b)",  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