public function seeRedirectBetween($oldUrl, $newUrl, $statusCode)
    {
        // We must not follow all redirects, so save current situation,
        // force disable follow redirects, and revert at the end.
        $followsRedirects = $this->isFollowingRedirects();
        $this->followRedirects(false);

        $response = $this->sendHeadAndGetResponse($oldUrl);

        if (null !== $response) {
            $responseCode   = $response->getStatus();
            $locationHeader = $response->getHeader('Location', true);

            // Check for correct response code.
            $this->assertEquals($statusCode, $responseCode, 'Response code was not ' . $statusCode . '.');

            // Check location header URL contains submitted URL.
            $this->assertContains($newUrl, $locationHeader, 'Redirect destination not found in Location header.');
        }


        $this->followRedirects($followsRedirects);
    }