### Question:
AuthorisationServiceRemote implements AuthorisationServiceEncrypted { @Override public CmsResponse<Boolean> updateAuthorisationStatus(String authorisationId, ScaStatus scaStatus) { try { consentRestTemplate.put(authorisationRemoteUrls.updateAuthorisationStatus(), null, authorisationId, scaStatus); return CmsResponse.<Boolean>builder() .payload(true) .build(); } catch (CmsRestException cmsRestException) { log.info("Couldn't update authorisation status by authorisation ID {}, HTTP response status: {}", authorisationId, cmsRestException.getHttpStatus()); } return CmsResponse.<Boolean>builder() .payload(false) .build(); }  @Override CmsResponse<CreateAuthorisationResponse> createAuthorisation(AuthorisationParentHolder parentHolder, CreateAuthorisationRequest request); @Override CmsResponse<Authorisation> getAuthorisationById(String authorisationId); @Override CmsResponse<Authorisation> updateAuthorisation(String authorisationId, UpdateAuthorisationRequest request); @Override CmsResponse<Boolean> updateAuthorisationStatus(String authorisationId, ScaStatus scaStatus); @Override CmsResponse<List<String>> getAuthorisationsByParentId(AuthorisationParentHolder parentHolder); @Override CmsResponse<ScaStatus> getAuthorisationScaStatus(String authorisationId, AuthorisationParentHolder parentHolder); @Override CmsResponse<Boolean> isAuthenticationMethodDecoupled(String authorisationId, String authenticationMethodId); @Override CmsResponse<Boolean> saveAuthenticationMethods(String authorisationId, List<CmsScaMethod> methods); @Override CmsResponse<Boolean> updateScaApproach(String authorisationId, ScaApproach scaApproach); @Override CmsResponse<AuthorisationScaApproachResponse> getAuthorisationScaApproach(String authorisationId);  }### Answer:
@Test void updateAuthorisationStatus() { when(authorisationRemoteUrls.updateAuthorisationStatus()).thenReturn(URL); ScaStatus scaStatus = ScaStatus.RECEIVED; CmsResponse<Boolean> actualResponse = authorisationServiceRemote.updateAuthorisationStatus(AUTHORISATION_ID, scaStatus); assertTrue(actualResponse.isSuccessful()); assertTrue(actualResponse.getPayload()); verify(consentRestTemplate).put(URL, null, AUTHORISATION_ID, scaStatus); }
@Test void updateAuthorisationStatus_cmsRestException() { when(authorisationRemoteUrls.updateAuthorisationStatus()).thenReturn(URL); ScaStatus scaStatus = ScaStatus.RECEIVED; doThrow(CmsRestException.class).when(consentRestTemplate).put(URL, null, AUTHORISATION_ID, scaStatus); CmsResponse<Boolean> actualResponse = authorisationServiceRemote.updateAuthorisationStatus(AUTHORISATION_ID, scaStatus); assertTrue(actualResponse.isSuccessful()); assertFalse(actualResponse.getPayload()); verify(consentRestTemplate).put(URL, null, AUTHORISATION_ID, scaStatus); }