protected function startUserSession(object $user): Session
    {
        $session = new Session();

        $session->set('is_granted', true);
        $session->set('user', $user);

        return $session;
    }