function getExpectedProviderWithScopes(opt_customParameters) {
  // Add additional scopes to test they are properly passed to sign in method.
  app.updateConfig('signInOptions', signInOptionsWithScopes);
  var expectedProvider = firebaseui.auth.idp.getAuthProvider('google.com');
  expectedProvider.addScope('googl1');
  expectedProvider.addScope('googl2');
  // Set custom parameters if provided on the expected provider.
  if (opt_customParameters) {
    expectedProvider.setCustomParameters(opt_customParameters);
  }
  return expectedProvider;
}
@param {?Object=} opt_customParameters The optional custom OAuth parameters
    to match if expected.
@return {!Object} The expected provider with custom parameters and scopes
    after updating signInOptions.