Capture the rendered view in the Response class for testing.