private static SourceRefResolver createSourceRefResolver() {
        SearchChainResolver.Builder builder = new SearchChainResolver.Builder();
        builder.addSearchChain(ComponentId.fromString(cluster1), new FederationOptions().setUseByDefault(true), List.of());
        builder.addSearchChain(ComponentId.fromString(cluster2), new FederationOptions().setUseByDefault(true), List.of());

        return new SourceRefResolver(builder.build(), Map.of(schema1, List.of(cluster1, cluster2),
                                                             schema2, List.of(cluster1),
                                                             schema3, List.of(cluster3)));
    }
Test for SourceRefResolver.

@author Tony Vaagenes
container-search/src/test/java/com/yahoo/search/federation/sourceref/SourceRefResolverTestCase.java