# File test/test_redirect.rb, line 162
    def test_URL_and_not_found
      redirect = Rucy::RegexpRedirectDocument.new(%"^.*/bar*?$", 'http://www.foo.bar/index.html')
      @request.method = 'GET'
      @request.path = '/baz'
      @request.version = 'HTTP/1.1'
      done = false
      begin
        redirect.publish('', @request, @response, self)
      rescue Rucy::HTTPError
        assert_equal(404, $!.status) # Not Found
        done = true
      end
      assert(done)
      assert(@messg_body.empty?)
    end