public function testRedirectLocationById($locationHref)
{
$hrefParts = explode('/', $locationHref);
$id = array_pop($hrefParts);
$response = $this->sendHttpRequest($this->createHttpRequest('GET', "/api/ezp/v2/content/locations?id={$id}"));
self::assertHttpResponseCodeEquals($response, 307);
self::assertHttpResponseHasHeader($response, 'Location', $locationHref);
}