### Question:
TppDomainValidator implements BusinessValidator<String> { @Override public ValidationResult validate(@NotNull String header) { if (StringUtils.isNotBlank(header) && isRedirectScaApproach() && isCheckUriComplianceToDomainSupported() && isRejectMode()) { List<URL> certificateUrls = getCertificateUrls(); if (certificateUrls.isEmpty()) { return ValidationResult.valid(); } URL urlHeader = buildURL(header); if (urlHeader == null || !isUrlCompliant(urlHeader, certificateUrls)) { return buildInvalidResult(); } } return ValidationResult.valid(); }  @Override ValidationResult validate(@NotNull String header); @Override Set<TppMessageInformation> buildWarningMessages(@NotNull String urlString);  }### Answer:
@Test void validate_valid_warningMode() { ValidationResult actualResult = tppDomainValidator.validate(URL_HEADER_WRONG); assertEquals(ValidationResult.valid(), actualResult); }
@Test void validate_valid() { ValidationResult actualResult = tppDomainValidator.validate(""); assertEquals(ValidationResult.valid(), actualResult); }