@Test
    public void testSearchersReferredWithIdRefPerCloud() throws TransformerException {
        String input =
                """
                        <?xml version="1.0" encoding="UTF-8" standalone="no"?>
                        <services xmlns:deploy="vespa" xmlns:preprocess="?" version="1.0">
                        <container id="stateless" version="1.0">
                          <search>
                            <searcher id="AwsSearcher" class="ai.vespa.AwsSearcher" bundle="foo"/>
                            <searcher id="GcpSearcher" class="ai.vespa.GcpSearcher" bundle="foo"/>
                            <searcher id="OtherSearcher" class="ai.vespa.OtherSearcher" bundle="foo"/>
                            <chain id="default" inherits="vespa">
                               <searcher idref="AwsSearcher" deploy:cloud="aws"/>
                               <searcher idref="GcpSearcher" deploy:cloud="gcp"/>
                               <searcher idref="OtherSearcher"/>
                            </chain>
                          </search>
                        </container>
                        "</services>""";

        String expected =
                """
                        <?xml version="1.0" encoding="UTF-8" standalone="no"?>
                        <services xmlns:deploy="vespa" xmlns:preprocess="?" version="1.0">
                        <container id="stateless" version="1.0">
                          <search>
                            <searcher id="AwsSearcher" class="ai.vespa.AwsSearcher" bundle="foo"/>
                            <searcher id="GcpSearcher" class="ai.vespa.GcpSearcher" bundle="foo"/>
                            <searcher id="OtherSearcher" class="ai.vespa.OtherSearcher" bundle="foo"/>
                            <chain id="default" inherits="vespa">
                              <searcher idref="%s"/>
                              <searcher idref="OtherSearcher"/>
                            </chain>
                          </search>
                        </container>
                        "</services>""";

        assertOverride(input, "aws", expected.formatted("AwsSearcher"));
        assertOverride(input, "gcp", expected.formatted("GcpSearcher"));
    }
Tests that searchers referred to with idref are overridden per cloud
and that searchers not referred to with idref are not overridden.
config-application-package/src/test/java/com/yahoo/config/application/OverrideProcessorTest.java