Hibernate sample with tests