function createComponent(phoneNumber, opt_delay) {
  var component = new firebaseui.auth.ui.page.PhoneSignInFinish(
      onChangePhoneClick,
      goog.bind(
          firebaseui.auth.ui.element.FormTestHelper.prototype.onSubmit,
          formTestHelper),
      goog.bind(
          firebaseui.auth.ui.element.FormTestHelper.prototype.onLinkClick,
          formTestHelper),
      onResendClick, phoneNumber, opt_delay || 0,
      goog.bind(
          firebaseui.auth.ui.element.TosPpTestHelper.prototype.onTosLinkClick,
          tosPpTestHelper),
      goog.bind(
          firebaseui.auth.ui.element.TosPpTestHelper.prototype.onPpLinkClick,
          tosPpTestHelper));
  phoneConfirmationCodeTestHelper.setComponent(component);
  formTestHelper.setComponent(component);
  formTestHelper.resetState();
  infoBarTestHelper.setComponent(component);
  resendTestHelper.setComponent(component);
  resendTestHelper.resetState();
  tosPpTestHelper.setComponent(component);
  tosPpTestHelper.resetState();
  pageTestHelper.setClock(mockClock).setComponent(component);
  component.render(root);
  return component;
}
@param {string} phoneNumber The phone number being confirmed.
@param {number=} opt_delay The resend delay.
@return {!goog.ui.Component} The rendered PhoneSignInFinish component.