I have this setup in my unit test
HttpApplication application = MockRepository.GenerateStub<HttpApplication>();
application.Stub(a => a.CompleteRequest());
And when I run the tests it throws a NullReferenceException on the second line. This is confusing to me because up above it is mocked.