@Test
  public void testIssuerNotParsedFromName() {
    addSomeRecordsWithNullIssuer();
    // The account "Foobar:baz@gmail.com" (with null issuer parameter only) exists
    assertThat(accountDb.indexExists(index("Foobar:baz@gmail.com", null))).isTrue();
    // However, "baz@gmail.com" (with or without the issuer parameter) does not exist
    assertThat(accountDb.indexExists(index("baz@gmail.com", null))).isFalse();
    assertThat(accountDb.indexExists(index("baz@gmail.com", "Foobar"))).isFalse();
    // Also, we have not added the version of "Foobar:baz@gmail.com" with the issuer parameter set
    assertThat(accountDb.indexExists(index("Foobar:baz@gmail.com", "Foobar"))).isFalse();
  }
A list of {@link TestAccount}s that all have issuers.
javatests/com/google/android/apps/authenticator/otp/AccountDbTest.java