Session s = openSession();
s.beginTransaction();
Item item = new Item();
item.setName( "dummy" );
s.persist( item );
s.getTransaction().commit();
s.close();
Long id = item.getId();
s = openSession();
s.beginTransaction();
s.delete( item );
item = ( Item ) s.get( Item.class, id );
s.getTransaction().commit();
s.close();
assertNull( "expecting removed entity to be returned as null from get()", item );