When a byte-code enhanced entity that contains a lazy-loaded collection as a one-to-many association to a child entity with orphan removal is detached, a subsequent flush of the session throws an assertion failure:
org.hibernate.AssertionFailure: collection owner not associated with session: org.hibernate.test.bytecode.enhancement.lazy.LazyCollectionDetachTest$Parent.children