@Test
    public void test() {
        Handle h = h2Extension.getSharedHandle();

        h.execute("create table things (thing varchar)");

        List<String> things = asList("foo", "bar", "baz");
        h.attach(ThingDAO.class).batchInsertThings(things);

        assertThat(h.createQuery("select thing from things").mapTo(String.class).list())
            .containsExactlyInAnyOrderElementsOf(things);

        assertThat(VerifyImpl.INVOKED_COUNT).hasValue(things.size());
    }
see <a href="https://github.com/jdbi/jdbi/issues/1516">Issue #1516</a>
sqlobject/src/test/java/org/jdbi/v3/sqlobject/TestSqlBatchWithCustomizer.java