public function testVisit()
{
$visitor = $this->getVisitor();
$generator = $this->getGenerator();
$generator->startDocument(null);
$redirect = new Values\PermanentRedirect('/some/redirect/uri');
$this->getVisitorMock()->expects($this->once())->method('setStatus')->with($this->equalTo(301));
$this->getVisitorMock()->expects($this->once())->method('setHeader')->with($this->equalTo('Location'), $this->equalTo('/some/redirect/uri'));
$visitor->visit($this->getVisitorMock(), $generator, $redirect);
$this->assertTrue($generator->isEmpty());
}