@Test
  public void testResultAsCellScanner() throws IOException {
    Cell[] cells = genKVs(row, family, value, 1, 10);
    Arrays.sort(cells, CellComparator.getInstance());
    Result r = Result.create(cells);
    assertCellsSame(r, cells);
    // Assert I run over same result multiple times.
    assertCellsSame(r.cellScanner(), cells);
    assertCellsSame(r.cellScanner(), cells);
    // Assert we are not creating new object when doing cellscanner
    assertTrue(r == r.cellScanner());
  }
Run some tests to ensure Result acts like a proper CellScanner.
hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestResult.java