public function testHasGetters()
 {
     $creds = new Credentials('foo', 'baz', 'tok', 'foo-baz', '1.0.0');
     $this->assertEquals('foo', $creds->getUsername());
     $this->assertEquals('baz', $creds->getPassword());
     $this->assertEquals('tok', $creds->getSubscriptionToken());
     $this->assertEquals('foo-baz', $creds->getVendor());
     $this->assertEquals('1.0.0', $creds->getVersion());
     $this->assertEquals(['Username' => 'foo', 'Password' => 'baz', 'SubscriptionToken' => 'tok', 'Vendor' => 'foo-baz', 'Version' => '1.0.0'], $creds->toArray());
 }
 public function setCredentials(PreparedEvent $event)
 {
     $request = $event->getRequest();
     $request->addHeaders($this->credentials->toArray());
 }