/** @test */
 function shouldReturnTheRightCallback()
 {
     $id = $this->accessor->getIdentity(new \StdClass());
     $this->assertEquals(1234, $id);
 }
 /** @test @expectedException Exception */
 function shouldThrowIfMethodDoesNotExist()
 {
     $this->accessor = new AccessorObjectIdentifier('getOtherId', 'specificObject');
     $obj = $this->getMock('IdentityAccessorTest\\AccessorIdentifiedObject');
     $this->accessor->getIdentity($obj);
 }