@SuppressWarnings("unchecked")
@Test
public void testGetResourcePaths() {

    Set<URL> urls = createMock(Set.class);
    expect(servletContext.getResourcePaths("whatever")).andReturn(urls);
    replay(servletContext, config, urls);
    ServletContextAdapter adapter = new ServletContextAdapter(config);
    assertEquals(urls, adapter.getResourcePaths("whatever"));
    verify(urls);
}