private Chains getSearchChainConfig(List<Chains> searchChains,
                                                                String searchChainName) {
        for (Chains searchChain : searchChains) {
            if (ComponentId.fromString(searchChain.id()).getName().equals(searchChainName))
                return searchChain;
        }
        fail("No search chain matching " + searchChainName);
        return null;
    }
Test of Search chains builder.

@author Tony Vaagenes
config-model/src/test/java/com/yahoo/vespa/model/builder/xml/dom/chains/search/DomSchemaChainsBuilderTest.java