@Test
  public void testGetType() {
    addAllTestRecords();
    assertThat(accountDb.getType(index("johndoe@gmail.com", null))).isEqualTo(OtpType.TOTP);
    assertThat(accountDb.getType(index("maryweiss@yahoo.com", null))).isEqualTo(OtpType.HOTP);
    assertThat(accountDb.getType(index("amywinehouse@aol.com", null))).isEqualTo(OtpType.TOTP);

    for (TestAccount t : TEST_ACCOUNTS) {
      assertThat(accountDb.getType(t)).isEqualTo(t.type);
    }
  }
A list of {@link TestAccount}s that all have issuers.
javatests/com/google/android/apps/authenticator/otp/AccountDbTest.java