private function MakeDataPropertyMock($IsIdentity, $Identifier, callable $GetValue)
{
$PropertyMock = $this->getMock(self::CoreObjectNamespace . 'IDataProperty');
$PropertyMock->expects($this->any())->method('GetIdentifier')->will($this->returnValue($Identifier));
$PropertyMock->expects($this->any())->method('IsIdentity')->will($this->returnValue($IsIdentity));
$PropertyMock->expects($this->any())->method('GetValue')->will($this->returnCallback($GetValue));
return $PropertyMock;
}