@Test public void route_nested() {

  setBaseUri("/");
  when(uriInfo.getMatchedTemplates()).thenReturn(Arrays.asList(
    new PathTemplate("/"),
    new PathTemplate("/items/{itemId}"),
    new PathTemplate("/"),
    new PathTemplate("/nested")
  ));
  assertThat(SpanCustomizingApplicationEventListener.route(request))
    .isEqualTo("/nested/items/{itemId}");
}