@SuppressWarnings("unchecked")
	@Test
	public void testThisWeek() {
		SimpleValidator simpleValidator = new SimpleValidator();
		DateRangeBean bean;
		Set<?> validations;

		for (int days = -2007; days <= -7; days += 100) {
			bean = new DateRangeBean();
			bean.setDate8(util.add(new Date(), Calendar.DAY_OF_MONTH, days));
			validations = simpleValidator.validate(bean);
			TestUtil.assertValid((Set<ConstraintViolation<?>>) validations,
					"date8");
		}

		for (int days = 7; days <= 2007; days += 100) {
			bean = new DateRangeBean();
			bean.setDate8(util.add(new Date(), Calendar.DAY_OF_MONTH, days));
			validations = simpleValidator.validate(bean);
			TestUtil.assertValid((Set<ConstraintViolation<?>>) validations,
					"date8");
		}

		bean = new DateRangeBean();
		bean.setDate8(new Date());
		validations = simpleValidator.validate(bean);
		TestUtil.assertValid((Set<ConstraintViolation<?>>) validations);

		bean = new DateRangeBean();
		bean.setDate8(util.add(new Date(), Calendar.WEEK_OF_YEAR, +1));
		validations = simpleValidator.validate(bean);
		TestUtil.assertValid((Set<ConstraintViolation<?>>) validations, "date8");

		bean = new DateRangeBean();
		bean.setDate8(util.add(new Date(), Calendar.WEEK_OF_YEAR, -1));
		validations = simpleValidator.validate(bean);
		TestUtil.assertValid((Set<ConstraintViolation<?>>) validations, "date8");
	}