I have this setup in my unit test
HttpApplication application = MockRepository.GenerateStub(); application.Stub(a => a.CompleteReque