@BeforeEach
    public void setUp() {
        this.dao = h2Extension.getSharedHandle().attach(UserDao.class);
    }
An extension object that is attached to a handle can return iterators or streams. This class tests various ways on how this may leak resources.
sqlobject/src/test/java/org/jdbi/v3/sqlobject/AttachedHandleLeakTest.java