@Test
    void testConflictingAliases() {
        SearchDefinition first = new SearchDefinition("first");
        Index field1 = new Index("field1");
        first.addIndex(field1);

        SearchDefinition second = new SearchDefinition("second");
        Index field2 = new Index("field2");
        field2.addAlias("field1");
        second.addIndex(field2);

        // Alias to field1 conflics with field1 in the "union" search definition.
        // Should not produce an exception (but a log message):
        new IndexFacts(new IndexModel(Map.of(), List.of(first, second)));
    }
Tests using synthetic index names for IndexFacts class.

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