### Question:
Xs2aAisConsentService { public void updateMultilevelScaRequired(String consentId, boolean multilevelScaRequired) { try { consentService.updateMultilevelScaRequired(consentId, multilevelScaRequired); } catch (WrongChecksumException e) { log.info("updateMultilevelScaRequired cannot be executed, checksum verification failed"); } }  Optional<Xs2aCreateAisConsentResponse> createConsent(CreateConsentReq request, PsuIdData psuData, TppInfo tppInfo); Optional<AisConsent> getAccountConsentById(String consentId); boolean findAndTerminateOldConsentsByNewConsentId(String newConsentId); void updateConsentStatus(String consentId, ConsentStatus consentStatus); void consentActionLog(String tppId, String consentId, ActionStatus actionStatus, String requestUri, boolean updateUsage,
                                 String resourceId, String transactionId); void updateConsentAuthorisation(UpdateConsentPsuDataReq updatePsuData); CmsResponse<AisConsent> updateAspspAccountAccess(String consentId, AccountAccess accountAccess); Optional<List<String>> getAuthorisationSubResources(String consentId); void updateMultilevelScaRequired(String consentId, boolean multilevelScaRequired);  }### Answer:
@Test void updateMultilevelScaRequired() throws WrongChecksumException { xs2aAisConsentService.updateMultilevelScaRequired(CONSENT_ID, true); verify(consentServiceEncrypted, times(1)).updateMultilevelScaRequired(CONSENT_ID, true); }
@Test void updateMultilevelScaRequired_WrongChecksumException() throws WrongChecksumException { doThrow(new WrongChecksumException()).when(consentServiceEncrypted).updateMultilevelScaRequired(CONSENT_ID, true); xs2aAisConsentService.updateMultilevelScaRequired(CONSENT_ID, true); verify(consentServiceEncrypted, times(1)).updateMultilevelScaRequired(CONSENT_ID, true); }