verifyNoMoreInteractions(mockClientTracer, mockSpanNameFilter);
}
@Test
public void testHandleServiceWithSpanNameFilter() {
final SpanId spanId = mock(SpanId.class);
when(spanId.getSpanId()).thenReturn(SPAN_ID);
when(spanId.getParentSpanId()).thenReturn(PARENT_SPAN_ID);
when(spanId.getTraceId()).thenReturn(TRACE_ID);
when(mockClientTracer.startNewSpan(FILTERED_PATH)).thenReturn(spanId);
when(mockSpanNameFilter.filterSpanName(PATH)).thenReturn(FILTERED_PATH);
interceptor = new ClientRequestInterceptor(mockClientTracer, Optional.of(mockSpanNameFilter));
interceptor.handle(clientRequestAdapter, Optional.<String>absent());