public function assertAuthenticatedByUsernameAndPassword($name, $password) {
    $user = (object) [
      'name' => $name,
      'pass' => $password,
    ];
    $this->userCreate($user);
    $this->login($user);
  }