### Question:
RedirectAisAuthorizationService implements AisAuthorizationService { @Override public Optional<ScaStatus> getAuthorisationScaStatus(String consentId, String authorisationId) { return consentService.getAuthorisationScaStatus(consentId, authorisationId); }  @Override Optional<CreateConsentAuthorizationResponse> createConsentAuthorization(PsuIdData psuData, String consentId); @Override AuthorisationProcessorResponse updateConsentPsuData(UpdateAuthorisationRequest request, AuthorisationProcessorResponse response); @Override Optional<Authorisation> getConsentAuthorizationById(String authorizationId); @Override Optional<ScaStatus> getAuthorisationScaStatus(String consentId, String authorisationId); @Override ScaApproach getScaApproachServiceType();  }### Answer:
@Test void getAuthorisationScaStatus_success() { when(xs2aConsentService.getAuthorisationScaStatus(CONSENT_ID, AUTHORISATION_ID)) .thenReturn(Optional.of(SCA_STATUS)); Optional<ScaStatus> actual = redirectAisAuthorisationService.getAuthorisationScaStatus(CONSENT_ID, AUTHORISATION_ID); assertThat(actual.isPresent()).isTrue(); assertThat(actual.get()).isEqualTo(SCA_STATUS); }
@Test void getAuthorisationScaStatus_failure_wrongIds() { when(xs2aConsentService.getAuthorisationScaStatus(WRONG_CONSENT_ID, WRONG_AUTHORISATION_ID)) .thenReturn(Optional.empty()); Optional<ScaStatus> actual = redirectAisAuthorisationService.getAuthorisationScaStatus(WRONG_CONSENT_ID, WRONG_AUTHORISATION_ID); assertThat(actual.isPresent()).isFalse(); }