private function factoryProxyServer()
 {
     $proxyServer = new EngineBlock_Corto_ProxyServer();
     $proxyServer->setHostName('test-host');
     $proxyServer->setRepository(new InMemoryMetadataRepository(array(new IdentityProvider('testIdp')), array()));
     return $proxyServer;
 }
 protected function _configureProxyServer(EngineBlock_Corto_ProxyServer $proxyServer)
 {
     $proxyServer->setSystemLog($this->_getSystemLog());
     $proxyServer->setSessionLogDefault($this->_getSessionLog());
     $application = EngineBlock_ApplicationSingleton::getInstance();
     $proxyServer->setHostName($application->getHostname());
     $proxyServer->setConfigs(array('debug' => $application->getConfigurationValue('debug', false), 'ConsentStoreValues' => $this->_getConsentConfigurationValue('storeValues', true), 'rememberIdp' => '+3 months', 'metadataValidUntilSeconds' => 86400));
     /**
      * Augment our own IdP entry with stuff that can't be set via the Service Registry (yet)
      */
     $metadataRepository = $this->_configureMetadataRepository($proxyServer, $application);
     $proxyServer->setRepository($metadataRepository);
     $proxyServer->setBindingsModule(new EngineBlock_Corto_Module_Bindings($proxyServer));
     $proxyServer->setServicesModule(new EngineBlock_Corto_Module_Services($proxyServer));
     if ($this->_voContext != null) {
         $proxyServer->setVirtualOrganisationContext($this->_voContext);
     }
 }