@Test
  public void testAccountSetup_validHotpUriWithCounterAccepted() throws Throwable {
    activityTestRule.launchActivity(null);
    String accountName = "9.99.99.999";
    doAccountSetupWithValidUri(accountName, null, OtpType.HOTP, 264);
    doAccountSetupWithValidUri(accountName, "Some Issuer", OtpType.HOTP, 264);
    doAccountSetupWithValidUri(accountName, AccountDb.GOOGLE_ISSUER_NAME, OtpType.HOTP, 264);
  }
Unit test for authenticator activity (part/shard 2).
javatests/com/google/android/apps/authenticator/AuthenticatorActivityPart2Test.java