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