public function testEncrypt()
{
$unencryptedValue = 'unencrypted_value';
$encryptedValue = 'encrypted_value';
$privateKey = 'private_key';
$this->encryption->setPrivateKey($privateKey);
$this->algorithm->expects($this->once())->method('sign')->with($unencryptedValue, $privateKey)->will($this->returnValue($encryptedValue));
$this->assertSame($encryptedValue, $this->encryption->encrypt($unencryptedValue));
}