### Question:
DecoupledPiisAuthorizationService implements PiisAuthorizationService { @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 authorisationId); @Override Optional<ScaStatus> getAuthorisationScaStatus(String consentId, String authorisationId); @Override ScaApproach getScaApproachServiceType();  }### Answer:
@Test void getAuthorisationScaStatus_success() { when(consentService.getAuthorisationScaStatus(CONSENT_ID, AUTHORISATION_ID)) .thenReturn(Optional.of(SCA_STATUS)); Optional<ScaStatus> actualResponse = decoupledPiisAuthorizationService.getAuthorisationScaStatus(CONSENT_ID, AUTHORISATION_ID); assertThat(actualResponse.isPresent()).isTrue(); assertThat(actualResponse.get()).isEqualTo(SCA_STATUS); }
@Test void getAuthorisationScaStatus_wrongIds_fail() { when(consentService.getAuthorisationScaStatus(WRONG_CONSENT_ID, WRONG_AUTHORISATION_ID)) .thenReturn(Optional.empty()); Optional<ScaStatus> actualResponse = decoupledPiisAuthorizationService.getAuthorisationScaStatus(WRONG_CONSENT_ID, WRONG_AUTHORISATION_ID); assertThat(actualResponse.isPresent()).isFalse(); }