@Test
	public void testExplicitMessage() {
		Bean bean = new Bean();
		bean.format2 = "xx";
		ConstraintViolation<Bean> violation = validator.validate(bean).iterator().next();
		Assert.assertThat(violation.getMessage(), equalTo("not a valid date format"));

	}
Tests for DateFormat.DateFormatValidator.

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