@Test(expected = NodeAllocationException.class)
    public void cannot_inplace_decrease_resources_while_increasing_cluster_size() {
        addParentHosts(6, mediumResources.with(fast).with(local));

        new PrepareHelper(tester, app).prepare(content1, 4, 1, mediumResources).activate();
        assertSizeAndResources(content1, 4, new NodeResources(4, 8, 160, 1, fast, local));

        new PrepareHelper(tester, app).prepare(content1, 6, 1, smallResources);
    }
Node resources can be increased in-place if
 1. No change to topology
 2. No reduction to cluster size
 3. There is enough spare capacity on host

Node resources can be decreased in-place if
 1. No change to topology
 2. No reduction to cluster size
 3. For content/combined nodes: No increase to cluster size

Node resources are increased if at least one of the components (vcpu, memory, disk, bandwidth) is increased.

@author freva
node-repository/src/test/java/com/yahoo/vespa/hosted/provision/provisioning/InPlaceResizeProvisionTest.java