### Question:
ConsentValidationService { public ValidationResult validateConsentAuthorisationScaStatus(AisConsent consent, String authorisationId) { return getConsentAuthorisationScaStatusValidator.validate(new GetConsentAuthorisationScaStatusPO(consent, authorisationId)); }  ValidationResult validateConsentOnCreate(CreateConsentReq request, PsuIdData psuIdData); ValidationResult validateConsentOnGettingStatusById(AisConsent consent); ValidationResult validateConsentOnDelete(AisConsent consent); ValidationResult validateConsentOnGettingById(AisConsent consent); ValidationResult validateConsentAuthorisationOnCreate(CreateConsentAuthorisationObject createConsentAuthorisationObject); ValidationResult validateConsentPsuDataOnUpdate(AisConsent consent, UpdateConsentPsuDataReq request); ValidationResult validateConsentAuthorisationOnGettingById(AisConsent consent); ValidationResult validateConsentAuthorisationScaStatus(AisConsent consent, String authorisationId); Set<TppMessageInformation> buildWarningMessages(CreateConsentReq request);  }### Answer:
@Test void validateConsentAuthorisationScaStatus() { ArgumentCaptor<GetConsentAuthorisationScaStatusPO> getConsentAuthorisationScaStatusPOCaptor = ArgumentCaptor.forClass(GetConsentAuthorisationScaStatusPO.class); when(getConsentAuthorisationScaStatusValidator.validate(getConsentAuthorisationScaStatusPOCaptor.capture())).thenReturn(ValidationResult.valid()); service.validateConsentAuthorisationScaStatus(aisConsent, AUTHORISATION_ID); verify(getConsentAuthorisationScaStatusValidator).validate(any(GetConsentAuthorisationScaStatusPO.class)); assertEquals(aisConsent, getConsentAuthorisationScaStatusPOCaptor.getValue().getAisConsent()); assertEquals(AUTHORISATION_ID, getConsentAuthorisationScaStatusPOCaptor.getValue().getAuthorisationId()); }