void checkExpected(List<String> rs, String[][] expected, String msg, Logger LOG) {
    LOG.warn(testName.getMethodName() + ": read data(" + msg + "): ");
    logResult(LOG, rs);
    Assert.assertEquals(testName.getMethodName() + ": " + msg + "; " + rs,
        expected.length, rs.size());
    //verify data and layout
    for(int i = 0; i < expected.length; i++) {
      Assert.assertTrue("Actual line (data) " + i + " data: " + rs.get(i) + "; expected " + expected[i][0], rs.get(i).startsWith(expected[i][0]));
      if (expected.length == 2) {
        Assert.assertTrue("Actual line(file) " + i + " file: " + rs.get(i),
                rs.get(i).endsWith(expected[i][1]) || rs.get(i).matches(expected[i][1]));
      }
    }
  }
Will assert that actual files match expected.
@param expectedFiles - suffixes of expected Paths.  Must be the same length
@param rootPath - table or partition root where to start looking for actual files, recursively
ql/src/test/org/apache/hadoop/hive/ql/TxnCommandsBaseForTests.java