### Question:
MdcLoggingContextService implements LoggingContextService { @Override public void clearContext() { MDC.clear(); }  @Override void storeConsentStatus(@NotNull ConsentStatus consentStatus); @Override String getConsentStatus(); @Override void storeTransactionStatus(@NotNull TransactionStatus transactionStatus); @Override String getTransactionStatus(); @Override void storeScaStatus(@NotNull ScaStatus scaStatus); @Override void storeTransactionAndScaStatus(@NotNull TransactionStatus transactionStatus, @Nullable ScaStatus scaStatus); @Override String getScaStatus(); @Override void storeRequestInformation(RequestInfo requestInfo); @Override RequestInfo getRequestInformation(); @Override void clearContext();  }### Answer:
@Test void clearContext_shouldClearMdc() { MDC.put(CONSENT_STATUS_KEY, "some consent status"); MDC.put(TRANSACTION_STATUS_KEY, "some transaction status"); MDC.put(SCA_STATUS_KEY, "some sca status"); MDC.put(INSTANCE_ID_KEY, "some instance id"); mdcLoggingContextService.clearContext(); assertNull(MDC.get(CONSENT_STATUS_KEY)); assertNull(MDC.get(TRANSACTION_STATUS_KEY)); assertNull(MDC.get(SCA_STATUS_KEY)); assertNull(MDC.get(INSTANCE_ID_KEY)); }