@SuppressWarnings("unchecked")
@Test
public void testGetAttributeNames() {

    Enumeration<String> is = createMock(Enumeration.class);
    expect(servletContext.getAttributeNames()).andReturn(is);
    replay(servletContext, config, is);
    ServletContextAdapter adapter = new ServletContextAdapter(config);
    assertEquals(is, adapter.getAttributeNames());
    verify(is);
}