I rejected this because there is an obvious error in your test. The way that you remove elements from your collection does not comply with the JPA spec.