@Test
  public void testAccountSetup_withNonNumericCounter() throws Throwable {
    checkBadAccountSetup(
        "otpauth://hotp/?secret=CQAHUXJ2VWDI7WFF&counter=abc",
        AuthenticatorActivity.DIALOG_ID_INVALID_QR_CODE);
  }
Unit test for authenticator activity (part/shard 2).
javatests/com/google/android/apps/authenticator/AuthenticatorActivityPart2Test.java