@Test
	public void testDefaultMessage() {
		Bean bean = new Bean();
		bean.format1 = "xx";
		ConstraintViolation<Bean> violation = validator.validate(bean).iterator().next();
		Assert.assertThat(violation.getMessage(), equalTo("Illegal pattern character 'x'"));
	}
Tests for DateFormat.DateFormatValidator.

@author Eric Bottard
spring-xd-module-spi/src/test/java/org/springframework/xd/module/options/validation/DateFormatValidatorTests.java