@Test
public void testGetRealPath() {

    expect(servletContext.getRealPath("whatever")).andReturn("mypath");
    replay(servletContext, config);
    ServletContextAdapter adapter = new ServletContextAdapter(config);
    assertEquals("mypath", adapter.getRealPath("whatever"));
}