PortletApplicationContext implements ApplicationContext { public Map<String, String> getInitParams() { if ((initParam == null) && (context != null)) { initParam = new ReadOnlyEnumerationMap<String>(new InitParameterExtractor(context)); } return (initParam); } PortletApplicationContext(PortletContext context); Object getContext(); void initialize(PortletContext context); PortletContext getPortletContext(); 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(portletContext); assertTrue(context.getInitParams() instanceof ReadOnlyEnumerationMap); verify(portletContext); }