private Admin buildAdmin(Element xml, boolean multitenant, List<ConfigServerSpec> configServerSpecs) {
        DeployState deployState = DeployState.createTestState();
        ConfigModelContext context = ConfigModelContext.create(deployState, null, (m) -> {}, root, "foo");
        DomAdminV2Builder domAdminBuilder = new DomAdminV2Builder(context, multitenant, configServerSpecs);
        Admin admin = domAdminBuilder.build(deployState, root, xml);
        admin.addPerHostServices(root.hostSystem().getHosts(), deployState);
        return admin;
    }
Test that illegal yamas interval throws exception
config-model/src/test/java/com/yahoo/vespa/model/builder/xml/dom/DomAdminV2BuilderTest.java