### Question:
PisAuthorisationProcessorServiceImpl extends PaymentBaseAuthorisationProcessorService { @Override public void updateAuthorisation(AuthorisationProcessorRequest request, AuthorisationProcessorResponse response) { PisScaAuthorisationService authorizationService = getService(request.getScaApproach()); authorizationService.updateAuthorisation(request.getUpdateAuthorisationRequest(), response); } PisAuthorisationProcessorServiceImpl(List<PisScaAuthorisationService> services,
                                                Xs2aToSpiPaymentMapper xs2aToSpiPaymentMapper, PisExecutePaymentService pisExecutePaymentService,
                                                PisAspspDataService pisAspspDataService, Xs2aPisCommonPaymentMapper xs2aPisCommonPaymentMapper,
                                                SpiContextDataProvider spiContextDataProvider, SpiErrorMapper spiErrorMapper,
                                                SpiAspspConsentDataProviderFactory aspspConsentDataProviderFactory,
                                                Xs2aUpdatePaymentAfterSpiService updatePaymentAfterSpiService,
                                                Xs2aAuthorisationService xs2aAuthorisationService,
                                                Xs2aPisCommonPaymentService xs2aPisCommonPaymentService,
                                                PaymentAuthorisationSpi paymentAuthorisationSpi,
                                                PisCommonDecoupledService pisCommonDecoupledService,
                                                Xs2aToSpiPsuDataMapper xs2aToSpiPsuDataMapper,
                                                CurrencyConversionInfoSpi currencyConversionInfoSpi,
                                                SpiToXs2aCurrencyConversionInfoMapper spiToXs2aCurrencyConversionInfoMapper); @Override void updateAuthorisation(AuthorisationProcessorRequest request, AuthorisationProcessorResponse response); @Override AuthorisationProcessorResponse doScaReceived(AuthorisationProcessorRequest authorisationProcessorRequest); @Override AuthorisationProcessorResponse doScaExempted(AuthorisationProcessorRequest authorisationProcessorRequest);  }### Answer:
@Test void updateAuthorisation_success() { EmbeddedPisScaAuthorisationService embeddedPisScaAuthorisationService = Mockito.mock(EmbeddedPisScaAuthorisationService.class); DecoupledPisScaAuthorisationService decoupledPisScaAuthorisationService = Mockito.mock(DecoupledPisScaAuthorisationService.class); services = Arrays.asList(embeddedPisScaAuthorisationService, decoupledPisScaAuthorisationService); when(embeddedPisScaAuthorisationService.getScaApproachServiceType()).thenReturn(ScaApproach.EMBEDDED); PisAuthorisationProcessorServiceImpl pisAuthorisationProcessorService = new PisAuthorisationProcessorServiceImpl(services, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null); pisAuthorisationProcessorService.updateAuthorisation(buildAuthorisationProcessorRequest(), buildAuthorisationProcessorResponse()); verify(embeddedPisScaAuthorisationService).updateAuthorisation(any(), eq(buildAuthorisationProcessorResponse())); }