@Test
    public void testParsingDev() throws TransformerException {
        String expected =
                """
                <?xml version="1.0" encoding="UTF-8"?>
                <services version="1.0" xmlns:deploy="vespa">
                    <container id='default' version='1.0'>
                        <component id="comp-B" class="com.yahoo.ls.MyComponent" bundle="lsbe-hv">
                            <config name="ls.config.resource-pool">
                                <resource>
                                    <item>
                                        <id>comp-B-item-1</id>
                                        <type></type>
                                    </item>
                                </resource>
                            </config>
                        </component>
                    </container>
                </services>""";
        assertOverride(Environment.dev, RegionName.from("us-east-3"), expected);
    }
Demonstrates that only the most specific match is retained and that this can be overridden by using ids.

@author bratseth
config-application-package/src/test/java/com/yahoo/config/application/MultiOverrideProcessorTest.java