public function testBuildProxyClientWithDynamicSettings()
 {
     $servers = array('$http_cache.purge_servers$', 'http://varnish2');
     $configuredServers = array('http://varnishconfigured1', 'http://varnishconfigured2');
     $expectedServers = array('http://varnishconfigured1', 'http://varnishconfigured2', 'http://varnish2');
     $baseUrl = 'http://phoenix-rises.fm/rapmm';
     $this->configResolver->expects($this->once())->method('getParameter')->with('http_cache.purge_servers')->will($this->returnValue($configuredServers));
     $proxyClient = $this->factory->buildProxyClient($servers, $baseUrl);
     $this->assertInstanceOf($this->proxyClientClass, $proxyClient);
     $refProxy = new ReflectionObject($proxyClient);
     $refServers = $refProxy->getParentClass()->getProperty('servers');
     $refServers->setAccessible(true);
     $this->assertSame($expectedServers, $refServers->getValue($proxyClient));
 }