### Question:
AuditHandlerInterceptor extends HandlerInterceptorAdapter { @Override public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) { String approach = response.getHeader(ResponseHeaders.ASPSP_SCA_APPROACH); if (approach != null) { MDC.put("approach", approach); } MDC.clear(); } AuditHandlerInterceptor();  AuditHandlerInterceptor(boolean sanitized); @Override boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler); @Override void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex);  }### Answer:
@Test void afterCompletion() { String approach = "approach"; HttpServletResponse response = mock(HttpServletResponse.class); doReturn(approach).when(response).getHeader(ResponseHeaders.ASPSP_SCA_APPROACH); interceptor.afterCompletion(request, response, null, null); verify(response, times(1)).getHeader(ResponseHeaders.ASPSP_SCA_APPROACH); assertThat(MDC.getCopyOfContextMap()).isNull(); }