public function testCreateUrlWildcard()
{
$text = $this->addTestSuffix(__FUNCTION__);
$xml = <<<XML
<?xml version="1.0" encoding="UTF-8"?>
<UrlWildcardCreate>
<sourceUrl>/{$text}/*</sourceUrl>
<destinationUrl>/destination/url/{1}</destinationUrl>
<forward>true</forward>
</UrlWildcardCreate>
XML;
$request = $this->createHttpRequest('POST', '/api/ezp/v2/content/urlwildcards', 'UrlWildcardCreate+xml', 'UrlWildcard+json');
$request->setContent($xml);
$response = $this->sendHttpRequest($request);
self::assertHttpResponseCodeEquals($response, 201);
self::assertHttpResponseHasHeader($response, 'Location');
$href = $response->getHeader('Location');
$this->addCreatedElement($href);
return $href;
}