@SuppressWarnings("unchecked")
@Test
public void testGetResources() throws IOException {

    ApplicationContext wrappedContext = createMock(ApplicationContext.class);
    Collection<ApplicationResource> obj = createMock(Collection.class);
    expect(wrappedContext.getResources("whatever.html")).andReturn(obj);
    replay(wrappedContext, obj);
    ApplicationContextWrapper wrapper = new ApplicationContextWrapper(wrappedContext);
    assertEquals(obj, wrapper.getResources("whatever.html"));
    verify(wrappedContext, obj);
}