@Test
    public void testCustomArrayType() {

        UserId user1 = new UserId(10);
        UserId user2 = new UserId(12);
        try (Handle handle = h2Extension.openHandle()) {
            handle.execute("create table groups ("
                + "id int primary key, "
                + "user_ids int array)");
            assertThat(
                handle.createUpdate("insert into groups (id, user_ids) values (?,?)")
                    .bind(0, 1)
                    .bind(1, new UserId[]{user1, user2})
                    .execute())
                .isOne();

            final List<UserId> result = handle.createQuery("select user_ids from groups where id = ?")
                .bind(0, 1)
                .mapTo(new GenericType<List<UserId>>() {})
                .one();

            assertThat(result).containsExactly(user1, user2);
        }
    }
Test binding and mapping a custom array type; binding requires registration of a {@link SqlArrayType} implementation, and mapping requires registration
of a regular {@link ColumnMapper} for the element type
core/src/test/java/org/jdbi/v3/core/array/TestCustomArrayType.java