@Test
  public void testEquivalenceOfScanResults() throws Exception {
    Scan oneShotScan = new Scan();
    oneShotScan.setMaxResultSize(Long.MAX_VALUE);

    Scan partialScan = new Scan(oneShotScan);
    partialScan.setMaxResultSize(1);

    testEquivalenceOfScanResults(TABLE, oneShotScan, partialScan);
  }
Ensure that the results returned from a scanner that retrieves all results in a single RPC call
matches the results that are returned from a scanner that must incrementally combine partial
results into complete results. A variety of scan configurations can be tested
hbase-server/src/test/java/org/apache/hadoop/hbase/TestPartialResultsFromClientSide.java