@Test
public void preHandle_parsesAndAddsHttpRouteAttribute() {

  when(request.getAttribute("brave.SpanCustomizer")).thenReturn(span);
  when(request.getAttribute(BEST_MATCHING_PATTERN_ATTRIBUTE)).thenReturn("/items/{itemId}");
  interceptor.preHandle(request, response, controller);
  verify(request).getAttribute("brave.SpanCustomizer");
  verify(request).getAttribute(BEST_MATCHING_PATTERN_ATTRIBUTE);
  verify(request).setAttribute("http.route", "/items/{itemId}");
  verify(parser).preHandle(request, controller, span);
  verifyNoMoreInteractions(request, response, parser, span);
}