PortletApplicationContext implements ApplicationContext { public Map<String, Object> getApplicationScope() { if ((applicationScope == null) && (context != null)) { applicationScope = new ScopeMap(new ApplicationScopeExtractor(context)); } return (applicationScope); } 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 testGetApplicationScope() { replay(portletContext); assertTrue(context.getApplicationScope() instanceof ScopeMap); verify(portletContext); }