private void testChangeGlobalAttribute(boolean allowed, boolean oldGlobal, boolean newGlobal, String validationOverrides) {
        ValidationTester tester = new ValidationTester();
        VespaModel oldModel = tester.deploy(null, getServices(oldGlobal), zone, validationOverrides, "default.indexing").getFirst();
        try {
            var actions = tester.deploy(oldModel, getServices(newGlobal), zone, validationOverrides, "default.indexing").getSecond();
            assertTrue(allowed);
            assertEquals(validationOverrides == null ? 0 : 1, actions.size());
            if (validationOverrides != null) assertEquals(ClusterSpec.Id.from("default"), actions.get(0).clusterId());
        } catch (IllegalArgumentException e) {
            assertFalse(allowed);
            assertEquals("global-document-change: Document type music in cluster default changed global from " + oldGlobal + " to " + newGlobal + ". " +
                         "To allow this add <allow until='yyyy-mm-dd'>global-document-change</allow> to validation-overrides.xml, see https://docs.vespa.ai/en/reference/validation-overrides.html",
                         e.getMessage());
        }
    }
Test that global attribute changes are detected by change validator.
config-model/src/test/java/com/yahoo/vespa/model/application/validation/change/GlobalDocumentChangeValidatorTest.java