public function validate($value, ValidationResult $result = null)
{
if ($result === null) {
$result = new ValidationResult($value);
}
// strip off .json if it is there
$value = basename($value, ".json");
// the $value must be a valid system-under-test name
if (!$this->sutList->hasEntry($value)) {
$result->addError(static::MSG_NOTVALIDSUT);
return $result;
}
return $result;
}