public class TuscanyServletTestCase extends TestCase {
public void testRequestInjection() throws Exception {
ServletRequest req = createNiceMock(ServletRequest.class);
ServletResponse resp = createNiceMock(ServletResponse.class);
ServletRequestInjector injector = createMock(ServletRequestInjector.class);
injector.service(eq(req), eq(resp));
EasyMock.replay(injector);
WebappRuntime runtime = createMock(WebappRuntime.class);
expect(runtime.getRequestInjector()).andReturn(injector);
replay(runtime);
ServletContext context = createNiceMock(ServletContext.class);