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