void updateDiskCapacity(long newCapacityInBytes) {
      diskCapacityInBytes = newCapacityInBytes;
      this.hardwareLayout = new HardwareLayout(getJsonHardwareLayout(clusterName, getDatacenters(false, true, false)),
          new ClusterMapConfig(new VerifiableProperties(properties)));
    }
@param rangeStart start of the range of partitions.
@param count the number of partitions in the range.
@param expectedClass the expected class of all of the partitions
@param expectedState the expected state of all of the partitions
ambry-clustermap/src/test/java/com/github/ambry/clustermap/TestUtils.java