tx.commit();
s.close();
s = openSession();
tx = s.beginTransaction();
Vegetable v = (Vegetable) s.createCriteria( Vegetable.class ).uniqueResult();
assertTrue( v instanceof Carrot );
Carrot result = (Carrot) v;
assertEquals( 23, result.getLength() );
tx.commit();
s.close();