ServletApplicationContext implements ApplicationContext { public Map<String, String> getInitParams() { if ((initParam == null) && (servletContext != null)) { initParam = new ReadOnlyEnumerationMap<String>(new InitParameterExtractor(servletContext)); } return (initParam); } ServletApplicationContext(ServletContext servletContext); Object getContext(); Map<String, Object> getApplicationScope(); Map<String, String> getInitParams(); ApplicationResource getResource(String localePath); ApplicationResource getResource(ApplicationResource base, Locale locale); Collection<ApplicationResource> getResources(String path);  }
@Test public void testGetInitParams() { replay(servletContext); assertTrue(context.getInitParams() instanceof ReadOnlyEnumerationMap); verify(servletContext); }