RequestTracingFilter implements Filter { @Override public void destroy() { }  @Override @SuppressWarnings("RedundantThrows") void init(FilterConfig filterConfig); @Override void destroy(); @Override void doFilter(ServletRequest request,
                         ServletResponse response,
                         FilterChain filterChain); static final String FILTER_HAS_ALREADY_EXECUTED_ATTRIBUTE; @Deprecated
    static final String ERROR_REQUEST_URI_ATTRIBUTE; static final String USER_ID_HEADER_KEYS_LIST_INIT_PARAM_NAME; static final String TAG_AND_SPAN_NAMING_STRATEGY_INIT_PARAM_NAME; static final String TAG_AND_SPAN_NAMING_ADAPTER_INIT_PARAM_NAME; }
@Test public void destroy_does_nothing() { RequestTracingFilter filterSpy = spy(new RequestTracingFilter()); Throwable ex = catchThrowable(filterSpy::destroy); assertThat(ex).isNull(); verify(filterSpy).destroy(); verifyNoMoreInteractions(filterSpy); }