private Matcher<ChainedComponent<?>> searcherWithId(final String componentId) {
        return new BaseMatcher<>() {
            @Override
            public boolean matches(Object o) {
                return o instanceof ChainedComponent &&
                        ((ChainedComponent) o).getComponentId().equals(new ComponentId(componentId));
            }

            @Override
            public void describeTo(Description description) {
                description.appendText("a searcher with id ").appendValue(componentId);
            }
        };
    }
Test of Search chains builder.

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