private void validateAccountRecord(
      AccountIndex index, String secret, OtpType type, Integer counter, boolean isGoogleAccount) {
    Integer expectedCounter = 0; // a null argument means counter = 0
    if (counter != null) {
      expectedCounter = counter;
    }
    assertThat(accountDb.indexExists(index)).isTrue();
    assertThat(accountDb.getSecret(index)).isEqualTo(secret);
    assertThat(accountDb.getType(index)).isEqualTo(type);
    assertThat(accountDb.getCounter(index)).isEqualTo(expectedCounter);
    assertThat(accountDb.isGoogleAccount(index)).isEqualTo(isGoogleAccount);
  }
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