public void testEventCounts(String dbName, long fromEventId, Long toEventId, Integer limit,
                               long expectedCount) throws Exception {
    NotificationEventsCountRequest rqst = new NotificationEventsCountRequest(fromEventId, dbName);

    if (toEventId != null) {
      rqst.setToEventId(toEventId);
    }
    if (limit != null) {
      rqst.setLimit(limit);
    }

    assertEquals(expectedCount, client.getNotificationEventsCount(rqst).getEventsCount());
  }
Get statistics for a given partition of the given table in the given database.
@param dbName - the database where the table resides
@param tableName - name of the partitioned table in the database
@param colNames - columns whose statistics is to be retrieved
@return Map of partition name and list of ColumnStatisticsObj. The objects in the list are
ordered according to the given list of columns.
@throws Exception
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/WarehouseInstance.java