@Test
public void testGetResourceAsStream() {

    InputStream is = createMock(InputStream.class);
    expect(servletContext.getResourceAsStream("whatever")).andReturn(is);
    replay(servletContext, config, is);
    ServletContextAdapter adapter = new ServletContextAdapter(config);
    assertEquals(is, adapter.getResourceAsStream("whatever"));
    verify(is);
}