private void assertRowCount(int count, String query, Object ... params) throws SQLException {
        QueryRunner run = new QueryRunner(ds);
        int actualCount = run.query(query, COUNT_HANDLER, params);
        Assert.assertEquals(count, actualCount);
    }
Asserts the row count of the given query.
@param count
@param query
@param params
@throws SQLException
gateway/engine/jdbc/src/test/java/io/apiman/gateway/engine/jdbc/JdbcMetricsTest.java