ApplicationContextWrapper implements ApplicationContext { public ApplicationContext getWrappedApplicationContext() { return context; } 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);  }
@Test public void testGetWrappedApplicationContext() { ApplicationContext wrappedContext = createMock(ApplicationContext.class); replay(wrappedContext); ApplicationContextWrapper wrapper = new ApplicationContextWrapper(wrappedContext); assertEquals(wrappedContext, wrapper.getWrappedApplicationContext()); verify(wrappedContext); }