@Test
    void yamasElementInvalid() {
        assertThrows(IllegalArgumentException.class, () -> {
            Element servicesYamasIllegalInterval = XML.getDocument(
                    "<admin version=\"2.0\">" +
                            "  <adminserver hostalias=\"mockhost\"/>" +
                            "  <monitoring interval=\"5\"/>" +
                            "</admin>").getDocumentElement();
            Admin admin = buildAdmin(servicesYamasIllegalInterval);
        });
    }
Test that illegal yamas interval throws exception
config-model/src/test/java/com/yahoo/vespa/model/builder/xml/dom/DomAdminV2BuilderTest.java