public void testDateCompareForComparisonTypesPass()
throws ReportedValidationException {
TestObjectForComparisonTypes testObject =
new TestObjectForComparisonTypes(
"02/11/2008", "31/10/2008","01/11/2008");
DateComparisonValidator validator = new DateComparisonValidator();
for (Field field
: TestObjectForComparisonTypes.class.getDeclaredFields()) {
ValidateDateCompare annotation =
(ValidateDateCompare) ReflectionUtil.getAnnotation(
field, ValidateDateCompare.class);
if (annotation != null) {
assertTrue(validator.validate(
(DateSource) ReflectionUtil.
determineAnnotationParameterValue(
annotation, "firstDate"),
(DateSource) ReflectionUtil.
determineAnnotationParameterValue(