# File test/test_redirect.rb, line 34
    def test_URL_with_status
      redirect = @RedirectDocument.new('http://www.foo.bar/index.html', 307)
      @request.method = 'GET'
      @request.path = '/'
      @request.version = 'HTTP/1.1'
      redirect.publish('', @request, @response, @logger)
      assert_equal('HTTP/1.1', @messg_head.version)
      assert_equal(307, @messg_head.status)
      assert_equal('Temporary Redirect', @messg_head.reason)
      assert_equal('http://www.foo.bar/index.html', @messg_head.header('Location'))
      assert((@messg_head.has_header? 'Content-Type'))
      assert(! @messg_body.empty?)
    end