private void assertCell(Cell cell, byte[] row, byte[] cf, byte[] cq) {
    assertArrayEquals(row,
      Bytes.copy(cell.getRowArray(), cell.getRowOffset(), cell.getRowLength()));
    assertArrayEquals(cf,
      Bytes.copy(cell.getFamilyArray(), cell.getFamilyOffset(), cell.getFamilyLength()));
    assertArrayEquals(cq,
      Bytes.copy(cell.getQualifierArray(), cell.getQualifierOffset(), cell.getQualifierLength()));
  }
Test partial Result re-assembly in the presence of different filters. The Results from the
partial scanner should match the Results returned from a scanner that receives all of the
results in one RPC to the server. The partial scanner is tested with a variety of different
result sizes (all of which are less than the size necessary to fetch an entire row)
hbase-server/src/test/java/org/apache/hadoop/hbase/TestPartialResultsFromClientSide.java