ApplicationContextJeeConfig implements JeeConfig { public Enumeration<String> getInitParameterNames() { return Collections.enumeration(params.keySet()); } ApplicationContextJeeConfig(ApplicationContext applicationContext, Map<String, String> params); String getInitParameter(String name); String findInitParameter(String key); Enumeration<String> getInitParameterNames(); String getName(); ServletContext getServletContext();  }
@Test public void testGetInitParameterNames() { params = new HashMap<String, String>(); params.put("one", "value1"); config = new ApplicationContextJeeConfig(applicationContext, params); replay(servletContext); @SuppressWarnings("unchecked") Enumeration<String> names = config.getInitParameterNames(); assertTrue(names.hasMoreElements()); assertEquals("one", names.nextElement()); assertFalse(names.hasMoreElements()); }