public NodeResources availableCapacityOf(Node host) {
        return availableCapacityOf(host, false, true);
    }
@Test
    public void availableCapacityOf() {
        assertEquals(new NodeResources(5, 40, 80, 2,
                                       NodeResources.DiskSpeed.fast, NodeResources.StorageType.remote, NodeResources.Architecture.x86_64),
                     capacity.availableCapacityOf(host1));
        assertEquals(new NodeResources(5, 60, 80, 4.5,
                                       NodeResources.DiskSpeed.fast, NodeResources.StorageType.remote, NodeResources.Architecture.x86_64),
                     capacity.availableCapacityOf(host3));
        assertEquals(NodeResources.zero(),
                     capacity.availableCapacityOf(host4));
    }