private void verifyAllContents(String tblName, TestDataProvider dataProvider,
      List<String> expectedData) throws Exception {
    List<String> actualData = dataProvider.getAllData(tblName);
    Collections.sort(actualData);
    Assert.assertEquals(expectedData, actualData);
  }
Results of a select on the table results in the same data as expectedData.
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/txn/compactor/TestMmCompactorOnTez.java