### Question:
ScaApproachResolver { @NotNull public ScaApproach getScaApproach(@NotNull String authorisationId) { return resolveScaApproach(authorisationId); } ScaApproachResolver(Xs2aAuthorisationService xs2aAuthorisationService,
                               AspspProfileService aspspProfileService,
                               RequestProviderService requestProviderService); ScaApproach resolveScaApproach(); @NotNull ScaApproach getScaApproach(@NotNull String authorisationId);  }### Answer:
@Test void resolveScaApproach_scaApproachResponseIsEmpty() { assertThrows(IllegalArgumentException.class, () -> scaApproachResolver.getScaApproach(AUTHORISATION_ID)); }
@Test void getScaApproach() { when(xs2aAuthorisationService.getAuthorisationScaApproach(AUTHORISATION_ID)) .thenReturn(Optional.of(new AuthorisationScaApproachResponse(REDIRECT))); ScaApproach scaApproach = scaApproachResolver.getScaApproach(AUTHORISATION_ID); assertThat(scaApproach).isEqualTo(REDIRECT); verify(xs2aAuthorisationService, times(1)) .getAuthorisationScaApproach(eq(AUTHORISATION_ID)); }