Test spring validation