private void finishAuthWithTestAccount(TestAccount testAccount) {
    testAccountId = testAccount.getId();

    AccessToken accessToken =
        AccessToken.createFromString(
            testAccount.getAccessToken(), requestedPermissions, AccessTokenSource.TEST_USER);
    finishAuthOrReauth(accessToken, null);
  }
 private static synchronized void storeTestAccount(TestAccount testAccount) {
   appTestAccounts.put(testAccount.getId(), testAccount);
 }