testOkForEmail() {
    expectOk(ANCHOR_TEXT, ANCHOR_MAILTO);
    mockCtrl.$replayAll();
    setUpAnchor('', '', true);
    createAndShow();

    dialog.tabPane_.setSelectedTabId(LinkDialog.Id_.EMAIL_ADDRESS_TAB);

    setDisplayInputText(ANCHOR_TEXT);
    setEmailInputText(ANCHOR_EMAIL);
    testingEvents.fireClickSequence(dialog.getOkButtonElement());

    mockCtrl.$verifyAll();
  }
Tests that clicking OK with the email tab selected dispatches an event with
the proper link data.
@suppress {visibility} suppression added to enable type checking