public Database getDatabase(String dbName) throws Exception {
    try {
      return client.getDatabase(dbName);
    } catch (NoSuchObjectException e) {
      return null;
    }
  }
verify's result without regard for ordering.
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/WarehouseInstance.java