public function testFindClaimByName()
{
$claim = new Claim\PrivateClaim('name', 'value');
$this->claims->expects($this->exactly(2))->method('getIterator')->will($this->returnValue(new \ArrayObject([$claim])));
$this->assertSame($claim, $this->payload->findClaimByName('name'));
$this->assertNull($this->payload->findClaimByName('none'));
}