@Test
public void testGetResource() throws IOException {

    ApplicationContext wrappedContext = createMock(ApplicationContext.class);
    ApplicationResource obj = createMock(ApplicationResource.class);
    ApplicationResource objFr = createMock(ApplicationResource.class);
    expect(wrappedContext.getResource("whatever.html")).andReturn(obj);
    expect(wrappedContext.getResource(obj, Locale.FRENCH)).andReturn(objFr);
    replay(wrappedContext);
    ApplicationContextWrapper wrapper = new ApplicationContextWrapper(wrappedContext);
    assertEquals(obj, wrapper.getResource("whatever.html"));
    assertEquals(objFr, wrapper.getResource(obj, Locale.FRENCH));
    verify(wrappedContext);
}