public function getCleanStateOfPropertyReturnsPropertyData()
{
$entity = new \stdClass();
$reconstitutedEntitiesData = ['abc' => ['properties' => ['foo' => ['type' => 'string']]]];
$session = $this->getAccessibleMock(Persistence\Generic\Session::class, ['isReconstitutedEntity', 'getIdentifierByObject']);
$session->_set('reconstitutedEntitiesData', $reconstitutedEntitiesData);
$session->expects($this->any())->method('isReconstitutedEntity')->with($entity)->will($this->returnValue(true));
$session->expects($this->any())->method('getIdentifierByObject')->with($entity)->will($this->returnValue('abc'));
$state = $session->getCleanStateOfProperty($entity, 'foo');
$this->assertEquals(['type' => 'string'], $state);
}