public function createPathSegmentForObjectThrowsInvalidUriPatterExceptionIfItSpecifiedPropertiesContainObjects()
{
$identityRoutePart = $this->getAccessibleMock(IdentityRoutePart::class, ['dummy']);
$object = new \stdClass();
$object->objectProperty = new \stdClass();
$identityRoutePart->setUriPattern('{objectProperty}');
$identityRoutePart->_call('createPathSegmentForObject', $object);
}