final String payloadText = "Initial payload";
Session s = openSession();
s.beginTransaction();
LobHolder holder = new LobHolder();
holder.setSerialData( new SerializableData( payloadText ) );
s.save( holder );
s.getTransaction().commit();
s.close();
s = openSession();
s.beginTransaction();
holder = ( LobHolder ) s.get( LobHolder.class, holder.getId() );
SerializableData serialData = ( SerializableData ) holder.getSerialData();
assertEquals( payloadText, serialData.getPayload() );
s.delete( holder );
s.getTransaction().commit();
s.close();