@Test
  public void testPriority() throws Exception {
    // Expected priority, file limit, stripe count, files per stripe, l0 files.
    testPriorityScenario(5, 5, 0, 0, 0);
    testPriorityScenario(2, 5, 0, 0, 3);
    testPriorityScenario(4, 25, 5, 1, 0); // example case.
    testPriorityScenario(3, 25, 5, 1, 1); // L0 files counts for all stripes.
    testPriorityScenario(3, 25, 5, 2, 0); // file to each stripe - same as one L0 file.
    testPriorityScenario(2, 25, 5, 4, 0); // 1 is priority user, so 2 is returned.
    testPriorityScenario(2, 25, 5, 4, 4); // don't return higher than user unless over limit.
    testPriorityScenario(2, 25, 5, 1, 10); // same.
    testPriorityScenario(0, 25, 5, 4, 5); // at limit.
    testPriorityScenario(-5, 25, 5, 6, 0); // over limit!
    testPriorityScenario(-1, 25, 0, 0, 26); // over limit with just L0
  }
Verifies scenario for finding a split point.
@param splitPointAfter    Stripe to expect the split point at/after.
@param shouldSplitStripe  If true, the split point is expected in the middle of the above
                          stripe; if false, should be at the end.
@param splitRatioToVerify Maximum split imbalance ratio.
@param sizes              Stripe sizes.
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestStripeStoreFileManager.java