private void assertDateValue(String property, DateTimePickerTag tag, Date toCompareDate,
boolean compareDate, boolean compareTime) throws Exception {
tag.doStartTag();
DateTimePicker picker = (DateTimePicker) tag.getComponent();
picker.evaluateParams();
String dateStr = (String) tag.getComponent().getParameters()
.get(property);
Date date = RFC3339_FORMAT.parse(dateStr);
assertNotNull(date);