### Question:
FundsConfirmationLoggingInterceptor extends HandlerInterceptorAdapter { @Override public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) { TppLogger.logRequest(request) .withTpp(tppService.getTppInfo()) .withRequestUri() .perform(); return true; }  @Override boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler); @Override void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex);  }### Answer:
@Test void preHandle_success() { when(request.getRemoteAddr()).thenReturn(TPP_IP); when(request.getRequestURI()).thenReturn(REQUEST_URI); interceptor.preHandle(request, response, null); verify(tppService).getTppInfo(); verify(request).getRemoteAddr(); verify(request).getRequestURI(); }