@Override
        public boolean equals(Object o) {
            if (this == o) {
                return true;
            }
            if (o == null || getClass() != o.getClass()) {
                return false;
            }
            User user = (User) o;
            return id == user.id && Objects.equals(name, user.name);
        }
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