@Test
    void testRestrictLists1() {
        Query query = new Query();
        query.getModel().getSources().add("nalle");
        query.getModel().getSources().add("one");
        query.getModel().getRestrict().add("two");

        IndexFacts.Session indexFacts = createIndexFacts().newSession(List.of("clusterOne"), List.of());
        assertTrue(indexFacts.isIndex("a"));
        assertFalse(indexFacts.isIndex("b"));
        assertTrue(indexFacts.isIndex("d"));
    }
Tests using synthetic index names for IndexFacts class.

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