@Test
  public void testAccountSetup_validTotpUriWithIssuerAccepted() throws Throwable {
    activityTestRule.launchActivity(null);
    doAccountSetupWithValidUri("9.99.99.999", "Some Issuer", OtpType.TOTP, null);
    doAccountSetupWithValidUri("9.99.99.999", AccountDb.GOOGLE_ISSUER_NAME, OtpType.TOTP, null);
    doAccountSetupWithValidUri("Some Issuer:test@gmail.com", "Some Issuer", OtpType.TOTP, null);
    doAccountSetupWithValidUri("Issuer:  whitespace@test.com", "Issuer", OtpType.TOTP, null);
    doAccountSetupWithValidUri("Mismatched:test@gmail.com", "Issuer", OtpType.TOTP, null);
  }
Unit test for authenticator activity (part/shard 2).
javatests/com/google/android/apps/authenticator/AuthenticatorActivityPart2Test.java