@Override
    public void beforeEach(ExtensionContext context) throws Exception {
        if (info != null) {
            throw new IllegalStateException("info is not null!");
        }

        info = pg.createDatabaseInfo();

        jdbi = Jdbi.create(info.asDataSource());

        installTestPlugins(jdbi);

        if (enableLeakchecker) {
            jdbi.getConfig(Handles.class).addListener(leakChecker);
            jdbi.getConfig(SqlStatements.class).addContextListener(leakChecker);
        }

        if (installPlugins) {
            jdbi.installPlugins();
        }

        plugins.forEach(jdbi::installPlugin);
        sharedHandle = jdbi.open();

        initializerMaybe.ifPresent(i -> i.initialize(sharedHandle));
    }
Postgres Test Support for core tests. Do NOT use this outside the core tests (or tests that use core tests), use the JdbiExtension from the
jdbi3-testing module instead!
core/src/test/java/org/jdbi/v3/core/junit5/PgDatabaseExtension.java