@Override
    protected void startExtension() throws Exception {

        if (masterDatasource != null || masterConfig != null) {
            throw new IllegalArgumentException("Extension was already started!");
        }

        masterConfig = new HikariConfig();
        masterConfig.setJdbcUrl(jdbcDatabaseContainer.getJdbcUrl());
        masterConfig.setUsername(databaseInformation.getUser().orElse(jdbcDatabaseContainer.getUsername()));
        masterConfig.setPassword(jdbcDatabaseContainer.getPassword());
        masterConfig.setDriverClassName(jdbcDatabaseContainer.getDriverClassName());
        masterConfig.setPoolName(format("jdbi-template-pool (%s)", databaseInformation));

        databaseInformation.getCatalog().ifPresent(masterConfig::setCatalog);
        databaseInformation.getSchema().ifPresent(masterConfig::setSchema);

        this.masterDatasource = new HikariDataSource(masterConfig);

        this.instanceProvider.start(masterDatasource);

        super.startExtension();
    }
Sets the maximum wait time for shutting down the extension.
@see TestcontainersDatabaseInformation#setShutdownWaitTimeInSeconds(int)

@since 3.45.0
testcontainers/src/main/java/org/jdbi/v3/testing/junit5/tc/JdbiTestcontainersExtension.java