@Test
    public void testMySQLWithConnectionPoolUsingSameContainer() throws SQLException, InterruptedException {
        // Populate the database with some data in multiple threads, so that multiple connections from the pool will be used
        for (int i = 0; i < 100; i++) {
            executorService.submit(() -> {
                try {
                    new QueryRunner(dataSource)
                        .insert("INSERT INTO my_counter (n) VALUES (5)", (ResultSetHandler<Object>) rs -> true);
                } catch (SQLException e) {
                    e.printStackTrace();
                }
            });
        }

        // Complete population of the database
        executorService.shutdown();
        executorService.awaitTermination(5, TimeUnit.MINUTES);

        // compare to expected results
        int count = new QueryRunner(dataSource)
            .query(
                "SELECT COUNT(1) FROM my_counter",
                rs -> {
                    rs.next();
                    return rs.getInt(1);
                }
            );
        assertThat(count).as("Reuse of a datasource points to the same DB container").isEqualTo(100);

        int sum = new QueryRunner(dataSource)
            .query(
                "SELECT SUM(n) FROM my_counter",
                rs -> {
                    rs.next();
                    return rs.getInt(1);
                }
            );
        // 100 records * 5 = 500 expected
        assertThat(sum).as("Reuse of a datasource points to the same DB container").isEqualTo(500);
    }
This test belongs in the jdbc module, as it is focused on testing the behaviour of {@link org.testcontainers.containers.JdbcDatabaseContainer}.
However, the need to use the {@link org.testcontainers.containers.MySQLContainerProvider} (due to the jdbc:tc:mysql) URL forces it to live here in
the mysql module, to avoid circular dependencies.
TODO: Move to the jdbc module and either (a) implement a barebones {@link org.testcontainers.containers.JdbcDatabaseContainerProvider} for testing, or (b) refactor into a unit test.
modules/mysql/src/test/java/org/testcontainers/jdbc/mysql/JDBCDriverWithPoolTest.java