### Question:
XRequestIdHeaderValidatorImpl extends AbstractHeaderValidatorImpl implements ConsentHeaderValidator, PaymentHeaderValidator, TransactionListHeaderValidator, FundsConfirmationHeaderValidator,
                   CancelPaymentHeaderValidator, TransactionListDownloadHeaderValidator, CreateConsentConfirmationOfFundsHeaderValidator { @Override protected String getHeaderName() { return X_REQUEST_ID; } @Autowired  XRequestIdHeaderValidatorImpl(ErrorBuildingService errorBuildingService);   }### Answer:
@Test void validate_success() { headers.put(validator.getHeaderName(), X_REQUEST_ID_HEADER); validator.validate(headers, messageError); assertTrue(messageError.getTppMessages().isEmpty()); }
@Test void validate_nullHeaderError() { headers.put(validator.getHeaderName(), null); validator.validate(headers, messageError); assertEquals(MessageErrorCode.FORMAT_ERROR_NULL_HEADER, messageError.getTppMessage().getMessageErrorCode()); assertArrayEquals(X_REQUEST_ID_HEADER_NAME, messageError.getTppMessage().getTextParameters()); }
@Test void validate_blankHeaderError() { headers.put(validator.getHeaderName(), ""); validator.validate(headers, messageError); assertEquals(MessageErrorCode.FORMAT_ERROR_BLANK_HEADER, messageError.getTppMessage().getMessageErrorCode()); assertArrayEquals(X_REQUEST_ID_HEADER_NAME, messageError.getTppMessage().getTextParameters()); }
@Test void validate_wrongFormatError() { headers.put(validator.getHeaderName(), "wrong_format"); validator.validate(headers, messageError); assertEquals(MessageErrorCode.FORMAT_ERROR_WRONG_HEADER, messageError.getTppMessage().getMessageErrorCode()); }