### Question:
ConfirmationOfFundsConsentValidationService { public ValidationResult validateConsentAuthorisationOnCreate(CreatePiisConsentAuthorisationObject createPiisConsentAuthorisationObject) { return createPiisConsentAuthorisationValidator.validate(createPiisConsentAuthorisationObject); }  ValidationResult validateConsentOnDelete(PiisConsent consent); ValidationResult validateConsentAuthorisationOnCreate(CreatePiisConsentAuthorisationObject createPiisConsentAuthorisationObject); ValidationResult validateConsentPsuDataOnUpdate(PiisConsent consent, UpdateConsentPsuDataReq request); ValidationResult validateConsentAuthorisationOnGettingById(PiisConsent consent); ValidationResult validateConsentAuthorisationScaStatus(PiisConsent consent, String authorisationId);  }### Answer:
@Test void validateConsentAuthorisationOnCreate() { CreatePiisConsentAuthorisationObject createPiisConsentAuthorisationObject = new CreatePiisConsentAuthorisationObject(piisConsent, PSU_ID_DATA); ArgumentCaptor<CreatePiisConsentAuthorisationObject> argumentCaptor = ArgumentCaptor.forClass(CreatePiisConsentAuthorisationObject.class); when(createPiisConsentAuthorisationValidator.validate(argumentCaptor.capture())).thenReturn(ValidationResult.valid()); service.validateConsentAuthorisationOnCreate(createPiisConsentAuthorisationObject); verify(createPiisConsentAuthorisationValidator).validate(any(CreatePiisConsentAuthorisationObject.class)); assertEquals(createPiisConsentAuthorisationObject, argumentCaptor.getValue()); }