private static void checkExpectedFiles(FileStatus[] actualList, String[] expectedList, String filePrefix) throws Exception {
    Set<String> expectedSet = new HashSet<>();
    Set<String> unexpectedSet = new HashSet<>();
    for(String f : expectedList) {
      expectedSet.add(f);
    }
    for(FileStatus fs : actualList) {
      String endOfPath = fs.getPath().toString().substring(fs.getPath().toString().indexOf(filePrefix) + filePrefix.length());
      if(!expectedSet.remove(endOfPath)) {
        unexpectedSet.add(endOfPath);
      }
    }
    Assert.assertTrue("not found set: " + expectedSet + " unexpected set: " + unexpectedSet, expectedSet.isEmpty() && unexpectedSet.isEmpty());
  }
Test that rows are routed to proper files based on bucket col/ROW__ID
Only the Vectorized Acid Reader checks if bucketId in ROW__ID inside the file
matches the file name and only for files in delete_delta
ql/src/test/org/apache/hadoop/hive/ql/TestTxnCommands3.java