public function matchValueSetsTheIdentifierOfTheObjectPathMappingAndReturnsTrueIfAMatchingObjectPathMappingWasFound()
{
$mockObjectPathMapping = $this->createMock(ObjectPathMapping::class);
$mockObjectPathMapping->expects($this->once())->method('getIdentifier')->will($this->returnValue('TheIdentifier'));
$this->mockObjectPathMappingRepository->expects($this->once())->method('findOneByObjectTypeUriPatternAndPathSegment')->with('SomeObjectType', 'SomeUriPattern', 'TheRoutePath', false)->will($this->returnValue($mockObjectPathMapping));
$this->identityRoutePart->setObjectType('SomeObjectType');
$this->identityRoutePart->setUriPattern('SomeUriPattern');
$this->assertTrue($this->identityRoutePart->_call('matchValue', 'TheRoutePath'));
$expectedResult = ['__identity' => 'TheIdentifier'];
$actualResult = $this->identityRoutePart->getValue();
$this->assertSame($expectedResult, $actualResult);
}