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