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

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

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

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

		bean = new DateRangeBean();
		bean.setDate7(new Date());
		validations = simpleValidator.validate(bean);
		TestUtil.assertValid((Set<ConstraintViolation<?>>) validations, "date7");

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