// otherwise, see if date and if so compare as such
final DateValueFacet dateValueFacet = resultAdapter.getSpecification().getFacet(DateValueFacet.class);
if (dateValueFacet != null) {
final Date resultDate = dateValueFacet.dateValue(resultAdapter);
final DateParser dateParser = performContext.getDateParser();
final Date expectedDate = dateParser.parse(expected);
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)) {