protected void startExtension() throws Exception {
        if (this.jdbi != null || this.sharedHandle != null) {
            throw new IllegalStateException("Extension was already started!");
        }

        final DataSource ds = getDataSource();

        if (enableLeakchecker) {
            withConfig(Handles.class, h -> h.addListener(leakChecker));
            withConfig(SqlStatements.class, s -> s.addContextListener(leakChecker));
        }

        final Jdbi jdbiInstance = Jdbi.create(ds);

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

        plugins.forEach(jdbiInstance::installPlugin);
        final Handle sharedHandleInstance = jdbiInstance.open();

        this.jdbi = jdbiInstance;
        this.sharedHandle = sharedHandleInstance;

        initializerMaybe.ifPresent(i -> i.initialize(ds, sharedHandleInstance));
    }
Convenience method to attach an extension (such as a SqlObject) to the shared handle.
testing/src/main/java/org/jdbi/v3/testing/junit5/JdbiExtension.java