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

    replay(servletContext, config);
    ServletContextAdapter adapter = new ServletContextAdapter(config);
    Set<String> names = new HashSet<String>();
    names.add("one");
    names.add("two");
    names.add("three");
    for (Enumeration<String> enumeration = adapter.getInitParameterNames(); enumeration.hasMoreElements();) {
        String name = enumeration.nextElement();
        assertTrue(names.remove(name));
    }
    assertTrue(names.isEmpty());
}