Test spring and hibernate