@Override
 public void getValidationQuery() {
   HikariDataSource dataSource = createDataSource(0, 4);
   dataSource.setConnectionTestQuery("SELECT FROM FOO");
   assertThat(new HikariDataSourcePoolMetadata(dataSource).getValidationQuery())
       .isEqualTo("SELECT FROM FOO");
 }
 public void connect() {
   if (dataSource == null || dataSource.isClosed()) {
     dataSource = new HikariDataSource();
     dataSource.setJdbcUrl(jdbcURL);
     dataSource.setUsername(username);
     dataSource.setPoolName(poolname);
     dataSource.setAutoCommit(autoCommit);
     dataSource.setMaximumPoolSize(maximalPoolSize);
     if (passwd != null) dataSource.setPassword(passwd);
     if (sqlInit != null) dataSource.setConnectionInitSql(sqlInit);
     if (sqlTest != null) dataSource.setConnectionTestQuery(sqlTest);
     if (timeout != null) dataSource.setConnectionTimeout(timeout);
     if (jdbcDriverClassName != null) dataSource.setDriverClassName(jdbcDriverClassName);
   }
 }
 public void setValidationQuery(String validationQuery) {
   super.setConnectionTestQuery(validationQuery);
 }