public function assertEmailSentWithProperties(TableNode $table) {
    $last_mail = $this->getLastEmail();
    foreach ($table->getRowsHash() as $name => $value) {
      Assert::keyExists($last_mail, $name);
      Assert::eq($last_mail[$name], $value);
    }
  }