private void checkInnerSearcherIdIsNestedInSearchChainId(ChainsConfig config,
                                                             String partOfSearcherName,
                                                             String searchChainName) {
        Components searcher = getSearcherConfig(config.components(), partOfSearcherName);
        ComponentId searcherId = ComponentId.fromString(searcher.id());

        assertEquals(getSearchChain(searchChainName).getComponentId(), searcherId.getNamespace());

        Chains searchChain = getSearchChainConfig(config.chains(), searchChainName);
        assertEquals(searcherId, ComponentId.fromString(searchChain.components(0)));
    }
Test of Search chains builder.

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