void createDb(String dbName, String poolName) throws Exception {
      executeStatementOnDriver("drop database if exists " + dbName + " cascade", driver);
      executeStatementOnDriver("create database " + dbName + " WITH DBPROPERTIES('" + Constants.HIVE_COMPACTOR_WORKER_POOL + "'='" + poolName + "')", driver);
    }
Verify that the expected number of compactions have run, and their state is "succeeded".

@param expectedSuccessfulCompactions number of compactions already run
@throws MetaException
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorOnTezTest.java