shadows/framework/src/main/java/org/robolectric/shadows/ShadowAccountManager.java
public void addAccount(Account account, String... visibileToPackages) {
    addAccount(account);
    HashSet<String> value = new HashSet<>();
    Collections.addAll(value, visibileToPackages);
    packageVisibileAccounts.put(account, value);
  }
public void addAccount(Account account, String... visibileToPackages) {
    addAccount(account);
    HashSet<String> value = new HashSet<>();
    Collections.addAll(value, visibileToPackages);
    packageVisibileAccounts.put(account, value);
  }
Adds an account to the AccountManager but when {@link AccountManager#getAccountsByTypeForPackage(String, String)}
is called will be included if is in one of the #visibileToPackages

@param account User account.