private TestAccount findTestAccountByName(TestAccount[] testAccounts, String name) {
    for (TestAccount t : testAccounts) {
      if (t.name.equalsIgnoreCase(name)) {
        return t;
      }
    }
    fail("Couldn't find a test account for name: " + name);
    return null;
  }
Note: caller should carefully determine the expected value of {@code isGoogleAccount}, which
is affected by multiple factors.

@param isGoogleAccount is a {@code boolean}, not a {@link Boolean}
javatests/com/google/android/apps/authenticator/otp/AccountDbTest.java