@Test
public void shouldInitializeServlet() throws Exception {

    SampleServlet servlet = (SampleServlet) servletContainer.getServletForClass(SampleServlet.class, servletConfig);
    assertThat(servlet, is(not(nullValue())));
    assertThat(servlet.getInitializedCounter(), is(equalTo(1)));
    assertThat(servlet.getServletConfig(), is(equalTo(servletConfig)));
}