transaction = session.beginTransaction();
b = (Bookmark) session.get( Bookmark.class, b.getId() );
//Check directly in the cache the values stored
EntityKeyMetadata keyMetadata = new EntityKeyMetadata( "Bookmark", new String[]{ "id" } );
EntityKey key = new EntityKey( keyMetadata, new Object[]{ "42" } );
Map<String, Object> entity = extractEntityTuple( sessions, key );
assertEquals( "Entity visits count incorrect", entity.get( "visits_count" ), "444" );
assertEquals( "Entity serial number incorrect", entity.get( "serialNumber" ), serialNumber.toString() );
assertEquals( "Entity URL incorrect", entity.get( "url" ), "http://www.hibernate.org/" );