public function testAllowsDefaultHeaders()
 {
     Version::$emitWarnings = false;
     $default = array('X-Test' => 'Hi!');
     $other = array('X-Other' => 'Foo');
     $client = new Client();
     $client->setDefaultHeaders($default);
     $this->assertEquals($default, $client->getDefaultHeaders()->getAll());
     $client->setDefaultHeaders(new Collection($default));
     $this->assertEquals($default, $client->getDefaultHeaders()->getAll());
     $request = $client->createRequest('GET', null, $other);
     $this->assertEquals('Hi!', $request->getHeader('X-Test'));
     $this->assertEquals('Foo', $request->getHeader('X-Other'));
     $request = $client->createRequest('GET', null, new Collection($other));
     $this->assertEquals('Hi!', $request->getHeader('X-Test'));
     $this->assertEquals('Foo', $request->getHeader('X-Other'));
     $request = $client->createRequest('GET');
     $this->assertEquals('Hi!', $request->getHeader('X-Test'));
     Version::$emitWarnings = true;
 }