@Test
public void testMessageParameters(){

	IValidator<Object> validator = new HibernateValidatorProperty(new Model<TestBean>(new TestBean("aaa", "aaa")), "b");
	
	Validatable<Object> validatable = new Validatable<Object>("a");
	validator.validate(validatable);
	
	assertEquals(1, validatable.getErrors().size());
	assertEquals("Size", getError(validatable).getKeys().get(0));
	
	assertEquals(2, getError(validatable).getVariables().size());
	assertEquals(2, getError(validatable).getVariables().get("min"));
	assertEquals(4, getError(validatable).getVariables().get("max"));
}