### Question:
RequestResponseLoggingInterceptor extends HandlerInterceptorAdapter { @Override public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) { RequestResponseLogMessage message = RequestResponseLogMessage.builder(request, response) .withRequestUri() .withRequestHeaders() .withRequestPayload() .withResponseStatus() .withResponseHeaders() .withResponseBody() .build(); requestResponseLogger.logMessage(message); }  @Override void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex);  }### Answer:
@Test void afterCompletion_shouldLogRequestAndResponse() { UUID internalRequestId = UUID.fromString("b87028ad-6925-41fa-b892-88912606a2f4"); RequestResponseLogMessage message = RequestResponseLogMessage.builder(httpServletRequest, httpServletResponse) .withRequestUri() .withRequestHeaders() .withRequestPayload() .withResponseStatus() .withResponseHeaders() .withResponseBody() .build(); requestResponseLoggingInterceptor.afterCompletion(httpServletRequest, httpServletResponse, null, null); verify(requestResponseLogger).logMessage(message); }