if (expectedDate != null) {
if (expectedDate.compareTo(resultDate) == 0) {
return resultAdapter; // ok
}
}
final String format = dateParser.format(resultDate);
throw ScenarioBoundValueException.current(arg0Binding, format);
}
// otherwise, compare title
if (!StringUtils.nullSafeEquals(resultTitle, expected)) {