ApplicationContextWrapper implements ApplicationContext { public Map<String, Object> getApplicationScope() { return context.getApplicationScope(); } ApplicationContextWrapper(ApplicationContext context); ApplicationContext getWrappedApplicationContext(); Map<String, Object> getApplicationScope(); Object getContext(); Map<String, String> getInitParams(); ApplicationResource getResource(String localePath); ApplicationResource getResource(ApplicationResource base, Locale locale); Collection<ApplicationResource> getResources(String path);  }
@SuppressWarnings("unchecked") @Test public void testGetApplicationScope() { ApplicationContext wrappedContext = createMock(ApplicationContext.class); Map<String, Object> applicationScope = createMock(Map.class); expect(wrappedContext.getApplicationScope()).andReturn(applicationScope); replay(wrappedContext, applicationScope); ApplicationContextWrapper wrapper = new ApplicationContextWrapper(wrappedContext); assertEquals(applicationScope, wrapper.getApplicationScope()); verify(wrappedContext, applicationScope); }