### Question:
PisAuthorisationService { public void updateCancellationAuthorisation(UpdateAuthorisationRequest request, AuthorisationProcessorResponse response) { if (response.hasError()) { log.warn("Payment-ID [{}], Authorisation-ID [{}]. Updating PIS Payment Cancellation authorisation PSU Data has failed:. Error msg: [{}]", request.getBusinessObjectId(), request.getAuthorisationId(), response.getErrorHolder()); } else { authorisationServiceEncrypted.updateAuthorisation(request.getAuthorisationId(), pisCommonPaymentMapper.mapToUpdateAuthorisationRequest(response, AuthorisationType.PIS_CANCELLATION)); } }  CreateAuthorisationResponse createPisAuthorisation(String paymentId, PsuIdData psuData); Xs2aUpdatePisCommonPaymentPsuDataResponse updatePisAuthorisation(Xs2aUpdatePisCommonPaymentPsuDataRequest request, ScaApproach scaApproach); Xs2aUpdatePisCommonPaymentPsuDataResponse updatePisCancellationAuthorisation(Xs2aUpdatePisCommonPaymentPsuDataRequest request, ScaApproach scaApproach); CreateAuthorisationResponse createPisAuthorisationCancellation(String paymentId, PsuIdData psuData); Optional<List<String>> getCancellationAuthorisationSubResources(String paymentId); Optional<List<String>> getAuthorisationSubResources(String paymentId); Optional<ScaStatus> getAuthorisationScaStatus(String paymentId, String authorisationId); Optional<ScaStatus> getCancellationAuthorisationScaStatus(String paymentId, String authorisationId); Optional<AuthorisationScaApproachResponse> getAuthorisationScaApproach(String authorisationId); void updateAuthorisation(UpdateAuthorisationRequest request,
                                    AuthorisationProcessorResponse response); void updateCancellationAuthorisation(UpdateAuthorisationRequest request,
                                                AuthorisationProcessorResponse response);  }### Answer:
@Test void updateCancellationAuthorisation() { Xs2aUpdatePisCommonPaymentPsuDataRequest request = new Xs2aUpdatePisCommonPaymentPsuDataRequest(); request.setAuthorisationId(AUTHORISATION_ID); AuthorisationProcessorResponse response = new AuthorisationProcessorResponse(); UpdateAuthorisationRequest updateAuthorisationRequest = new UpdateAuthorisationRequest(); when(pisCommonPaymentMapper.mapToUpdateAuthorisationRequest(response, AuthorisationType.PIS_CANCELLATION)).thenReturn(updateAuthorisationRequest); pisAuthorisationService.updateCancellationAuthorisation(request, response); verify(authorisationServiceEncrypted, times(1)).updateAuthorisation(AUTHORISATION_ID, updateAuthorisationRequest); verify(pisCommonPaymentMapper, times(1)).mapToUpdateAuthorisationRequest(response, AuthorisationType.PIS_CANCELLATION); }