@Test
  public void testResultIteration() throws IOException {
    Cell[] cells = new Cell[COUNT];
    for (int i = 0; i < COUNT; i++) {
      byte[] bytes = Bytes.toBytes(i);
      cells[i] = new KeyValue(ROW, bytes, bytes, TIMESTAMP, bytes);
    }
    Result r = Result.create(Arrays.asList(cells));
    int index = 0;
    for (CellScanner cellScanner = r.cellScanner(); cellScanner.advance();) {
      Cell cell = cellScanner.current();
      byte[] bytes = Bytes.toBytes(index++);
      assertEquals(new KeyValue(ROW, bytes, bytes, TIMESTAMP, bytes), cell);
    }
    assertEquals(COUNT, index);
  }
Test that I can Iterate Client Actions that hold Cells (Get does not have Cells).
hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestPutDeleteEtcCellIteration.java