@Test
  public void testSwapId() throws AccountDbIdUpdateFailureException {
    addAllTestRecords();
    int firstIdBeforeUpdate = accountDb.getId(TEST_ACCOUNTS[0]);
    int secondIdBeforeUpdate = accountDb.getId(TEST_ACCOUNTS[1]);

    accountDb.swapId(TEST_ACCOUNTS[0], TEST_ACCOUNTS[1]);

    assertThat(accountDb.getId(TEST_ACCOUNTS[1])).isEqualTo(firstIdBeforeUpdate);
    assertThat(accountDb.getId(TEST_ACCOUNTS[0])).isEqualTo(secondIdBeforeUpdate);
  }
A list of {@link TestAccount}s that all have issuers.
javatests/com/google/android/apps/authenticator/otp/AccountDbTest.java