@Test
    void testContentTypeRemovalValidation() {
        ValidationTester tester = new ValidationTester();

        VespaModel previous = tester.deploy(null, getServices("music"), zone, null, "test.indexing").getFirst();
        try {
            tester.deploy(previous, getServices("book"), zone, null, "test.indexing");
            fail("Expected exception due to removal of schema 'music");
        }
        catch (IllegalArgumentException expected) {
            assertEquals("schema-removal: Schema 'music' is removed in content cluster 'test'. " +
                    "This will cause loss of all data in this schema. " +
                    ValidationOverrides.toAllowMessage(ValidationId.contentTypeRemoval),
                    Exceptions.toMessageString(expected));
        }
    }
Tests validation of removal of a document type.
Uses the types "music" and "book" as those are supported by the ValidationTester.

@author bratseth
config-model/src/test/java/com/yahoo/vespa/model/application/validation/change/ContentTypeRemovalValidatorTest.java