### Question:
ConsentValidationService { public ValidationResult validateConsentAuthorisationOnCreate(CreateConsentAuthorisationObject createConsentAuthorisationObject) { return createConsentAuthorisationValidator.validate(createConsentAuthorisationObject); }  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 validateConsentAuthorisationOnCreate() { when(createConsentAuthorisationValidator.validate(consentAuthorisationPOArgumentCaptor.capture())).thenReturn(ValidationResult.valid()); service.validateConsentAuthorisationOnCreate(new CreateConsentAuthorisationObject(aisConsent, new PsuIdData(null, null, null, null, null))); verify(createConsentAuthorisationValidator).validate(any(CreateConsentAuthorisationObject.class)); assertEquals(aisConsent, consentAuthorisationPOArgumentCaptor.getValue().getAisConsent()); }