diff --git a/hibernate-core/src/test/java/org/hibernate/test/cache/CollectionCacheEvictionTest.java b/hibernate-core/src/test/java/org/hibernate/test/cache/CollectionCacheEvictionTest.java index 2d2cd32f14..f6a003dc7f 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/cache/CollectionCacheEvictionTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/cache/CollectionCacheEvictionTest.java @@ -270,8 +270,10 @@ public class CollectionCacheEvictionTest extends BaseCoreFunctionalTestCase { s = openSession(); + company1 = (Company) s.get( Company.class, 1 ); company2 = (Company) s.get( Company.class, 2 ); + assertEquals( 0, company1.getUsers().size() ); assertEquals( 0, company2.getUsers().size() ); s.close(); }