private void isEqualToDate(final Object param, final Object value) {
		if (value instanceof Date) {
			if (!((Date) param).equals((Date) value)) {
				throw new IllegalStateException("Dates are not equal.");
			}
		} else {
			throw new IllegalArgumentException();
		}
	}