ApplicationContextWrapper implements ApplicationContext { public Object getContext() { return context.getContext(); } 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 testGetContext() { ApplicationContext wrappedContext = createMock(ApplicationContext.class); Object obj = createMock(Object.class); expect(wrappedContext.getContext()).andReturn(obj); replay(wrappedContext, obj); ApplicationContextWrapper wrapper = new ApplicationContextWrapper(wrappedContext); assertEquals(obj, wrapper.getContext()); verify(wrappedContext, obj); }