### Question:
SCAController implements SCAApi { @Override public ResponseEntity<AuthorizeResponse> selectMethod(String scaId, String authorisationId, String methodId, String cookies) { AuthorizeResponse authResponse = new AuthorizeResponse(); authResponse.setEncryptedConsentId(scaId); authResponse.setAuthorisationId(authorisationId); try { authInterceptor.setAccessToken(auth.getBearerToken().getAccess_token()); SCALoginResponseTO loginResponse = ledgersUserMgmt.selectMethod(scaId, authorisationId, methodId).getBody(); prepareAuthResponse(authResponse, Objects.requireNonNull(loginResponse)); BearerTokenTO bearerToken = loginResponse.getBearerToken(); responseUtils.setCookies(response, null, bearerToken.getAccess_token(), bearerToken.getAccessTokenObject()); return ResponseEntity.ok(authResponse); } finally { authInterceptor.setAccessToken(null); } }  @Override @ApiOperation(value = "Identifies the user by login an pin. Return sca methods information") ResponseEntity<AuthorizeResponse> login(String login, String pin); @Override ResponseEntity<AuthorizeResponse> selectMethod(String scaId, String authorisationId, String methodId, String cookies); @Override ResponseEntity<AuthorizeResponse> validateAuthCode(String scaId, String authorisationId, String authCode, String cookies);  }### Answer:
@Test void selectMethod() { when(auth.getBearerToken()).thenReturn(new BearerTokenTO()); when(ledgersUserMgmt.selectMethod(ArgumentMatchers.anyString(), ArgumentMatchers.anyString(), ArgumentMatchers.anyString())).thenReturn(getLoginResponse(PSUIDENTIFIED)); ResponseEntity<AuthorizeResponse> result = controller.selectMethod(AUTH_ID, AUTH_ID, METHOD_ID, COOKIE); assertEquals(getExpectedAuthResponse(PSUIDENTIFIED, null), result); }