public function retrieveUser(string $username)
 {
     if ($username === "notfound") {
         return null;
     }
     $user = new TestUser($username);
     return $user->getUsername() === $username ? $user : null;
 }