s1.evict( child.getParent() );
assertFalse( s1.contains( child.getParent() ) );
SimpleJtaTransactionManagerImpl.getInstance().begin();
s2 = openSession();
s2.saveOrUpdate( child );
s2 = applyNonFlushedChangesToNewSessionCloseOldSession( s2 );
child = ( Node ) getOldToNewEntityRefMap().get( child );
assertTrue( s2.contains( child ) );
assertFalse( s1.contains( child ) );
assertTrue( s2.contains( child.getParent() ) );