private HikariDataSource getDataSource(String jdbcUrl, int poolSize) {
        HikariConfig hikariConfig = new HikariConfig();
        hikariConfig.setJdbcUrl(jdbcUrl);
        hikariConfig.setConnectionTestQuery("SELECT 1");
        hikariConfig.setMinimumIdle(1);
        hikariConfig.setMaximumPoolSize(poolSize);

        return new HikariDataSource(hikariConfig);
    }
This method intentionally verifies encoding twice to ensure that the query string parameters are used when
Connections are created from cached containers.

@param jdbcUrl
@throws SQLException
modules/jdbc-test/src/main/java/org/testcontainers/jdbc/AbstractJDBCDriverTest.java