@Test
    public void testScriptAsSeparateStatements() {
        handle.createScript("INSERT INTO users (id, name) VALUES(3, 'Charlie');"
                + "UPDATE users SET name='Bobby Tables' WHERE id=2;")
            .executeAsSeparateStatements();
        assertThat(handle.createQuery("SELECT name FROM users WHERE id =2").mapTo(String.class).one()).isEqualTo("Bobby Tables");
        assertThat(handle.createQuery("SELECT name FROM users WHERE id =3").mapTo(String.class).one()).isEqualTo("Charlie");
    }
Many tests that try to provoke leaks and see whether the various checkers find them and various cleanup strategies catch them.
core/src/test/java/org/jdbi/v3/core/statement/LeakTest.java