@Test
public void testGetResource() throws MalformedURLException {

    URL url = new URL("file:///temporary");
    expect(servletContext.getResource("whatever")).andReturn(url);
    replay(servletContext, config);
    ServletContextAdapter adapter = new ServletContextAdapter(config);
    assertEquals(url, adapter.getResource("whatever"));
}