@Test
    void warn_on_bindings_shared_by_multiple_handlers() {
        class TestDeployLogger implements DeployLogger {
            List<String> logs = new ArrayList<>();
            @Override public void log(Level level, String message) { logs.add(message); }
        }
        var clusterElem = DomBuilderTest.parse(
                "<container id='default' version='1.0'>",
                "  <handler id='myHandler1'>",
                "    <binding>http://*/myhandler</binding>",
                "    <binding>https://*/myhandler</binding>",
                "  </handler>",
                "  <handler id='myHandler2'>",
                "    <binding>http://*/myhandler</binding>",
                "    <binding>https://*/myhandler</binding>",
                "  </handler>",
                "</container>");
        var logger = new TestDeployLogger();
        createModel(root, logger, clusterElem);
        assertEquals(
                List.of("Binding 'http://*/myhandler' was already in use by handler 'myHandler1', but will now be taken over by handler: myHandler2",
                        "Binding 'https://*/myhandler' was already in use by handler 'myHandler1', but will now be taken over by handler: myHandler2"),
                logger.logs);
    }
Tests for container model building with custom handlers.

@author gjoranv
config-model/src/test/java/com/yahoo/vespa/model/container/xml/HandlerBuilderTest.java