public function testHttpProtocolForwardedSecure()
{
$_SERVER['HTTP_X_FORWARDED_PROTO'] = 'https';
$gen = new DummyUrlGenerator();
$this->assertEquals('http', $gen->GetHttpProtocol());
$gen->setTrustForwarded(true);
$this->assertEquals('https', $gen->GetHttpProtocol());
}