@Test
  public void testExpectedNumberOfCellsPerPartialResult() throws Exception {
    Scan scan = new Scan();
    testExpectedNumberOfCellsPerPartialResult(scan);

    scan.setReversed(true);
    testExpectedNumberOfCellsPerPartialResult(scan);
  }
Setting the max result size allows us to control how many cells we expect to see on each call
to next on the scanner. Test a variety of different sizes for correctness
hbase-server/src/test/java/org/apache/hadoop/hbase/TestPartialResultsFromClientSide.java