ApplicationContextJeeConfig implements JeeConfig { public String findInitParameter(String key) { return params.get(key); } 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 testFindInitParameter() { params = new HashMap<String, String>(); params.put("one", "value1"); config = new ApplicationContextJeeConfig(applicationContext, params); replay(servletContext); assertEquals("value1", config.findInitParameter("one")); }