@Test
  public void testAccountSetup_uriWithInvalidSecretRejected() throws Throwable {
    // The URI contains an invalid base32 characters: 1 and 8
    checkBadAccountSetup(
        "otpauth://totp/9.99.99.999?secret=CQ1HUXJ2VWDI8WFF",
        AuthenticatorActivity.DIALOG_ID_INVALID_SECRET_IN_QR_CODE);
  }
Unit test for authenticator activity (part/shard 2).
javatests/com/google/android/apps/authenticator/AuthenticatorActivityPart2Test.java