diff --git a/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/EntityManagerTest.java b/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/EntityManagerTest.java index 70f60b1a9b..bf3be224c3 100755 --- a/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/EntityManagerTest.java +++ b/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/EntityManagerTest.java @@ -279,8 +279,8 @@ public class EntityManagerTest extends BaseEntityManagerFunctionalTestCase { IllegalArgumentException deserializedException = ( IllegalArgumentException ) in.readObject(); in.close(); byteIn.close(); - assertNull( deserializedException.getCause().getCause().getCause() ); - assertNull( e.getCause().getCause().getCause() ); + assertNull( deserializedException.getCause().getCause() ); + assertNull( e.getCause().getCause() ); } em.getTransaction().rollback(); em.close();