protected void doLoadIncrementalHFiles(Path hfiles, TableName tableName) throws Exception {

    String[] args = { hfiles.toString(), tableName.getNameAsString() };
    LOG.info(format("Running LoadIncrememntalHFiles with args: %s", Arrays.asList(args)));
    assertEquals("Loading HFiles failed.", 0,
      ToolRunner.run(new BulkLoadHFilesTool(getConf()), args));

    Table table = null;
    Scan scan = new Scan();
    scan.setCacheBlocks(false);
    scan.setCaching(1000);

    try {
      table = util.getConnection().getTable(tableName);
      Iterator<Result> resultsIt = table.getScanner(scan).iterator();
      Iterator<KeyValue> expectedIt = simple_expected.iterator();
      while (resultsIt.hasNext() && expectedIt.hasNext()) {
        Result r = resultsIt.next();
        for (Cell actual : r.rawCells()) {
          assertTrue("Ran out of expected values prematurely!", expectedIt.hasNext());
          KeyValue expected = expectedIt.next();
          assertEquals("Scan produced surprising result", 0,
            CellComparator.getInstance().compare(expected, actual));
        }
      }
      assertFalse("Did not consume all expected values.", expectedIt.hasNext());
      assertFalse("Did not consume all scan results.", resultsIt.hasNext());
    } finally {
      if (null != table) table.close();
    }
  }
Verify the data described by <code>simple_tsv</code> matches <code>simple_expected</code>.
hbase-it/src/test/java/org/apache/hadoop/hbase/mapreduce/IntegrationTestImportTsv.java