public function testMatch()
 {
     $key = 'akey';
     $secret = 'asecret';
     $keySecretConfig = new KeySecretConfig(new KeySecret($key, $secret));
     $this->assertTrue($keySecretConfig->match(new KeySecret($key, $secret)));
     $this->assertFalse($keySecretConfig->match(new KeySecret('wrongkey', $secret)));
     $this->assertFalse($keySecretConfig->match(new KeySecret($key, 'wrongsecret')));
     $credential = $this->getMock('EBT\\SimpleAuthentication\\Credential\\CredentialInterface');
     $credential->expects($this->never())->method('getKey');
     $credential->expects($this->never())->method('getSecret');
     /** @var CredentialInterface$credential */
     $this->assertFalse($keySecretConfig->match($credential));
 }