@SuppressWarnings({ "deprecation", "unchecked" })

@Test
public void testGetServletNames() {
    Enumeration<String> is = createMock(Enumeration.class);
    expect(servletContext.getServletNames()).andReturn(is);
    replay(servletContext, config, is);
    ServletContextAdapter adapter = new ServletContextAdapter(config);
    assertEquals(is, adapter.getServletNames());
    verify(is);
}