public function testGenericGetters()
 {
     $identity = new Identity('foo', 'bar');
     $this->assertSame('foo', $identity->getUsername());
     $this->assertSame('bar', $identity->getEncryptedPassword());
 }
 public function decryptPassword(Identity $identity) : string
 {
     return $this->blockCipher->decrypt($identity->getEncryptedPassword());
 }