Java Beans, Hibernate tests