### Question:
AuthorisationController implements AuthorisationApi { @Override public ResponseEntity<AuthorisationScaApproachResponse> getAuthorisationScaApproach(String authorisationId) { CmsResponse<AuthorisationScaApproachResponse> response = authorisationServiceEncrypted.getAuthorisationScaApproach(authorisationId); if (response.hasError()) { return new ResponseEntity<>(HttpStatus.NOT_FOUND); } return new ResponseEntity<>(response.getPayload(), HttpStatus.OK); }  @Override ResponseEntity<CreateAuthorisationResponse> createConsentAuthorisation(AuthorisationType authorisationType, String parentId, CreateAuthorisationRequest authorisationRequest); @Override ResponseEntity<Authorisation> getAuthorisation(String authorisationId); @Override ResponseEntity<Void> updateAuthorisation(String authorisationId, UpdateAuthorisationRequest authorisationRequest); @Override ResponseEntity<Void> updateAuthorisationStatus(String authorisationId, String scaStatus); @Override ResponseEntity<ScaStatus> getAuthorisationScaStatus(AuthorisationType authorisationType, String parentId, String authorisationId); @Override ResponseEntity<List<String>> getAuthorisationsByParentId(AuthorisationType authorisationType, String parentId); @Override ResponseEntity<Boolean> isAuthenticationMethodDecoupled(String authorisationId, String authenticationMethodId); @Override ResponseEntity<Void> saveAuthenticationMethods(String authorisationId, List<CmsScaMethod> methods); @Override ResponseEntity<Boolean> updateScaApproach(String authorisationId, ScaApproach scaApproach); @Override ResponseEntity<AuthorisationScaApproachResponse> getAuthorisationScaApproach(String authorisationId);  }### Answer:
@Test void getAuthorisationScaApproach() throws Exception { when(authorisationServiceEncrypted.getAuthorisationScaApproach(AUTHORISATION_ID)) .thenReturn(CmsResponse.<AuthorisationScaApproachResponse>builder() .payload(new AuthorisationScaApproachResponse(ScaApproach.REDIRECT)).build()); mockMvc.perform(MockMvcRequestBuilders.get(UriComponentsBuilder.fromPath("/api/v1/authorisations/{authorisation-id}/sca-approach") .buildAndExpand(AUTHORISATION_ID) .toUriString()) .contentType(MediaType.APPLICATION_JSON_VALUE)) .andExpect(status().is(HttpStatus.OK.value())); }
@Test void getAuthorisationScaApproach_hasError_notFoundHttpStatus() throws Exception { when(authorisationServiceEncrypted.getAuthorisationScaApproach(AUTHORISATION_ID)) .thenReturn(CmsResponse.<AuthorisationScaApproachResponse>builder() .error(CmsError.TECHNICAL_ERROR).build()); mockMvc.perform(MockMvcRequestBuilders.get(UriComponentsBuilder.fromPath("/api/v1/authorisations/{authorisation-id}/sca-approach") .buildAndExpand(AUTHORISATION_ID) .toUriString()) .contentType(MediaType.APPLICATION_JSON_VALUE)) .andExpect(status().is(HttpStatus.NOT_FOUND.value())); }