### Question:
MdcLoggingContextService implements LoggingContextService { @Override public RequestInfo getRequestInformation() { String internalRequestId = MDC.get(INTERNAL_REQUEST_ID_KEY); String xRequestId = MDC.get(X_REQUEST_ID_KEY); String instanceId = MDC.get(INSTANCE_ID_KEY); return new RequestInfo(internalRequestId, xRequestId, instanceId); }  @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 getRequestInformation_nullValues_shouldReturnNullValues() { RequestInfo expectedRequestInfo = new RequestInfo(null, null, null); RequestInfo actualRequestInfo = mdcLoggingContextService.getRequestInformation(); assertEquals(expectedRequestInfo, actualRequestInfo); }
@Test void getRequestInformation_shouldTakeValuesFromMdc() { MDC.put(INTERNAL_REQUEST_ID_KEY, INTERNAL_REQUEST_ID); MDC.put(X_REQUEST_ID_KEY, X_REQUEST_ID); MDC.put(INSTANCE_ID_KEY, INSTANCE_ID); RequestInfo expectedRequestInfo = new RequestInfo(INTERNAL_REQUEST_ID, X_REQUEST_ID, INSTANCE_ID); RequestInfo actualRequestInfo = mdcLoggingContextService.getRequestInformation(); assertEquals(expectedRequestInfo, actualRequestInfo); }