@Test
  public void testMayHaveMoreCellsInRowReturnsTrueAndSetBatch() throws IOException {
    Table table =
      createTestTable(TableName.valueOf(name.getMethodName()), ROWS, FAMILIES, QUALIFIERS, VALUE);
    Scan scan = new Scan();
    scan.setBatch(1);
    scan.setFilter(new FirstKeyOnlyFilter());
    ResultScanner scanner = table.getScanner(scan);
    Result result;
    while ((result = scanner.next()) != null) {
      assertTrue(result.rawCells() != null);
      assertEquals(1, result.rawCells().length);
    }
  }
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