@Override
    Deque<BalancerRegionLoad>[] getRegionLoads() {
      @SuppressWarnings("unchecked")
      Deque<BalancerRegionLoad>[] loads = new Deque[testRegions.length];
      for (int i = 0; i < testRegions.length; i++) {
        Deque<BalancerRegionLoad> dq = new ArrayDeque<>();
        dq.add(new BalancerRegionLoad(createMockRegionMetrics(testRegions[i])) {
        });
        loads[i] = dq;
      }
      return loads;
    }
A simplified BalancerClusterState which ensures we provide the intended test RegionMetrics data
when balancing this cluster
hbase-balancer/src/test/java/org/apache/hadoop/hbase/master/balancer/TestStoreFileTableSkewCostFunction.java