@Test
public void shouldInitializeFilter() throws Exception {

    SampleFilter filter = (SampleFilter) servletContainer.getFilterForClass(SampleFilter.class, filterConfig);
    assertThat(filter, is(not(nullValue())));
    assertThat(filter.getFilterConfig(), is(equalTo(filterConfig)));
    assertThat(filter.getFilterConfig().getServletContext(), is(notNullValue()));
}