FacebookAuthProvider extends AuthProvider { String getConnection() { return connectionName; } FacebookAuthProvider(String connectionName, AuthenticationAPIClient auth0);   FacebookAuthProvider(String connectionName, AuthenticationAPIClient auth0, FacebookApi facebook);  FacebookAuthProvider(@NonNull AuthenticationAPIClient auth0); void setPermissions(@NonNull Collection<String> permissions); void rememberLastLogin(boolean rememberLastLogin); @Override boolean authorize(int requestCode, int resultCode, @Nullable Intent intent); @Override boolean authorize(@Nullable Intent intent); @Override String[] getRequiredAndroidPermissions(); @Override void stop(); @Override void clearSession();  }
@Test public void shouldSetConnectionName() throws Exception { provider = new FacebookAuthProvider("my-custom-connection", client, apiHelper); assertThat(provider.getConnection(), is("my-custom-connection")); }
@Test public void shouldHaveNonNullConnectionName() throws Exception { assertThat(provider.getConnection(), is(notNullValue())); }
@Test public void shouldHaveDefaultConnectionName() throws Exception { assertThat(provider.getConnection(), is(CONNECTION_NAME)); }