s.setReadOnly( dp, true );
checkReadOnly( s, dp,true );
dp.setDescription( "changed" );
assertTrue( Hibernate.isInitialized( dp ) );
assertEquals( "changed", dp.getDescription() );
s.evict( dp );
assertFalse( s.contains( dp ) );
s.update( dp );
checkReadOnly( s, dp, false );
assertEquals( "changed", dp.getDescription() );
s.flush();