@SuppressWarnings("deprecation")
@Test
public void testGetServlet() throws ServletException {

    Servlet is = createMock(Servlet.class);
    expect(servletContext.getServlet("whatever")).andReturn(is);
    replay(servletContext, config, is);
    ServletContextAdapter adapter = new ServletContextAdapter(config);
    assertEquals(is, adapter.getServlet("whatever"));
    verify(is);
}