WebFilter implements Filter { @Override public void init(final FilterConfig filterConfig) throws ServletException { this.filterConfig = filterConfig; }  @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 testInit() throws ServletException { webFilter.init(filterConfig); assertThat(webFilter.getFilterConfig(), is(filterConfig)); }