function createComponent(enableVisibleRecaptcha, opt_tosCallback,
    opt_privacyPolicyCallback, opt_displayFullTosPpMessage, opt_lookupTree,
    opt_countryId, opt_nationalNumber) {
  var component = new firebaseui.auth.ui.page.PhoneSignInStart(
      goog.bind(
          firebaseui.auth.ui.element.FormTestHelper.prototype.onSubmit,
          formTestHelper),
      enableVisibleRecaptcha,
      goog.bind(
          firebaseui.auth.ui.element.FormTestHelper.prototype.onLinkClick,
          formTestHelper),
      opt_tosCallback,
      opt_privacyPolicyCallback,
      opt_displayFullTosPpMessage,
      opt_lookupTree,
      opt_countryId,
      opt_nationalNumber);
  component.render(root);
  phoneNumberTestHelper.setComponent(component);
  recaptchaTestHelper.setComponent(component);
  formTestHelper.setComponent(component);
  // Reset previous state of form helper.
  formTestHelper.resetState();
  infoBarTestHelper.setComponent(component);
  tosPpTestHelper.setComponent(component);
  // Reset previous state of tosPp helper.
  tosPpTestHelper.resetState();
  pageTestHelper.setClock(mockClock).setComponent(component);
  return component;
}
@param {boolean} enableVisibleRecaptcha Whether to enable a visible reCAPTCHA
    or an invisible one otherwise.
@param {?function()=} opt_tosCallback Callback to invoke when the ToS link
    is clicked.
@param {?function()=} opt_privacyPolicyCallback Callback to invoke when the
    Privacy Policy link is clicked.
@param {boolean=} opt_displayFullTosPpMessage Whether to display the full
    message of Term of Service and Privacy Policy.
@param {?firebaseui.auth.data.country.LookupTree=} opt_lookupTree The country
    lookup prefix tree to search country code with.
@param {?string=} opt_countryId The ID (e164_key) of the country to
    pre-select.
@param {?string=} opt_nationalNumber The national number to pre-fill.
@return {!goog.ui.Component} The rendered PhoneSignInStart component.