@Test
public void shouldDestroyOutdatedServlet() throws Exception {

    servletContainer = new ServletContainerImpl(new DateProvider(), 50, 50);
    SampleServlet servlet = (SampleServlet) servletContainer.getServletForClass(SampleServlet.class, servletConfig);
    assertThat(servlet, is(not(nullValue())));
    Thread.sleep(200);
    SampleServlet servlet2 = (SampleServlet) servletContainer.getServletForClass(SampleServlet.class, servletConfig);
    assertThat(servlet, is(not(nullValue())));
    assertThat(servlet, is(not(sameInstance(servlet2))));
}