@Test
  public void testGetAccounts() {
    addAllTestRecords();
    assertThat(accountDb.getAccounts()).hasSize(TEST_ACCOUNTS.length);

    // check indexExists()
    for (TestAccount t : TEST_ACCOUNTS) {
      assertThat(accountDb.indexExists(t)).isTrue();
    }
    // non-existent name.
    assertThat(accountDb.indexExists(index("marywinehouse@aol.com", null))).isFalse();
  }
A list of {@link TestAccount}s that all have issuers.
javatests/com/google/android/apps/authenticator/otp/AccountDbTest.java