private void validateHandler(JdiscBindingsConfig.Handlers handler, String bindingPrefix, List<String> expectedBindings) {
        assertNotNull(handler);
        assertEquals(expectedBindings.size(), handler.serverBindings().size());
        assertThat(handler.serverBindings(), containsInAnyOrder(expectedBindings.stream().map(s->bindingPrefix+s).toArray()));
    }
Tests for container model building with custom handlers.

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