@Test
    void testRedundancyIncreaseValidation() {
        VespaModel previous = tester.deploy(null, getServices(1, 3, 1), zone, null, "contentClusterId.indexing").getFirst();
        try {
            tester.deploy(previous, getServices(3, 3, 1), zone, null, "contentClusterId.indexing");
            fail("Expected exception due to redundancy increase");
        }
        catch (IllegalArgumentException expected) {
            assertEquals("resources-reduction: " +
                         "Effective resource reduction in cluster 'contentClusterId' is too large: " +
                         "redundancy from 1 to 3. " +
                         "To protect against mistakes, changes causing load increases of more than 100% are blocked. " +
                         ValidationOverrides.toAllowMessage(ValidationId.resourcesReduction),
                         Exceptions.toMessageString(expected));
        }
    }
Emulate a self-hosted setup in only the sense that it does not set node resources on the provisioned hosts.
config-model/src/test/java/com/yahoo/vespa/model/application/validation/change/ResourcesReductionValidatorTest.java