public function testSetHeadersNoOverwrite()
{
$data = new stdClass();
$generator = $this->getMock('\\eZ\\Publish\\Core\\REST\\Common\\Output\\Generator');
$visitor = $this->getMock('\\eZ\\Publish\\Core\\REST\\Common\\Output\\Visitor', array('visitValueObject'), array($generator, $this->getValueObjectDispatcherMock()));
$visitor->setHeader('Content-Type', 'text/xml');
$visitor->setHeader('Content-Type', 'text/html');
$this->assertEquals(new Response(null, 200, array('Content-Type' => 'text/xml')), $visitor->visit($data));
}