### Question:
ConfirmationOfFundsConsentValidationService { public ValidationResult validateConsentAuthorisationOnGettingById(PiisConsent consent) { return getCofConsentAuthorisationsValidator.validate(new CommonConfirmationOfFundsConsentObject(consent)); }  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 validateConsentAuthorisationOnGettingById() { ArgumentCaptor<CommonConfirmationOfFundsConsentObject> argumentCaptor = ArgumentCaptor.forClass(CommonConfirmationOfFundsConsentObject.class); when(getConfirmationOfFundsConsentAuthorisationsValidator.validate(argumentCaptor.capture())).thenReturn(ValidationResult.valid()); service.validateConsentAuthorisationOnGettingById(piisConsent); verify(getConfirmationOfFundsConsentAuthorisationsValidator).validate(any(CommonConfirmationOfFundsConsentObject.class)); assertEquals(piisConsent, argumentCaptor.getValue().getPiisConsent()); }