Check the behavior of the hibernate validator using unit tests

Signed-off-by: Clement Escoffier <clement.escoffier@gmail.com>