@Test
public void testThatSpanHandleIsDetached() throws Exception {

  when(request.getHeader(anyString())).thenReturn("");
  SpanContextHandle contextHandle = mock(SpanContextHandle.class);
  when(traceService.getSpanContextHandler().attach(any())).thenReturn(contextHandle);
  valve.invoke(request, response);
  verify(contextHandle).detach();
}