protected function assertPageLoaded($uri, $message = null)
    {
        $status = $this->statusCode();

        try {
            $this->assertEquals(200, $status);
        } catch (PHPUnitException $e) {
            $message = $message ?: "A GET request to '{$uri}' failed. Got a {$status} code instead.";

            $this->logLatestContent();

            if (method_exists($this, 'handleInternalError')) {
                $this->handleInternalError($message);
            }

            throw new PHPUnitException($message);
        }
    }