WebFilter implements Filter { @Override public void destroy() { filterConfig = null; }  @Override void init(final FilterConfig filterConfig); @Override void doFilter(final ServletRequest request, final ServletResponse response, final FilterChain chain); @Override void destroy(); FilterConfig getFilterConfig();  }
@Test public void testDestroy() { webFilter.destroy(); assertThat(webFilter.getFilterConfig(), is(nullValue())); }