I have a component using hibernate. I update database using hibernate and I want to write unit test for it. I basically open a session using Hibernate, extract data, begin trans