### Question:
RedirectConsentServiceImpl implements RedirectConsentService { @Override public void selectScaMethod(String scaMethodId, final ConsentWorkflow workflow) { try { authInterceptor.setAccessToken(workflow.bearerToken().getAccess_token()); BearerTokenTO bearerToken = workflow.bearerToken(); SCAConsentResponseTO sca = consentRestClient.selectMethod(workflow.consentId(), workflow.authId(), scaMethodId).getBody(); sca.setBearerToken(bearerToken); workflow.storeSCAResponse(sca); } finally { authInterceptor.setAccessToken(null); } }  @Override void selectScaMethod(String scaMethodId, final ConsentWorkflow workflow); @Override void updateAccessByConsentType(ConsentWorkflow workflow, List<AccountDetailsTO> listOfAccounts); @Override void updateScaStatusConsentStatusConsentData(String psuId, ConsentWorkflow workflow); @Override void startConsent(final ConsentWorkflow workflow, AisConsentTO aisConsent, List<AccountDetailsTO> listOfAccounts); @Override ConsentWorkflow identifyConsent(String encryptedConsentId, String authorizationId, boolean strict, String consentCookieString, BearerTokenTO bearerToken);  }### Answer:
@Test void selectScaMethod() { when(consentRestClient.selectMethod(any(), any(), any())).thenReturn(ResponseEntity.ok(getSCAConsentResponseTO())); redirectConsentService.selectScaMethod(SCA_METHOD_ID, getConsentWorkflow(AisConsentRequestType.GLOBAL, IBAN_DE)); verify(consentRestClient, times(1)).selectMethod(CONSENT_ID, AUTHORIZATION_ID, SCA_METHOD_ID); }