@Test
public void loadAccounts() throws Exception {

    KeyStoreImpl keyStore = new KeyStoreImpl(new FakeStore(), new FakeBackupRestore());
    KeyPair account1 = keyStore.newAccount();
    KeyPair account2 = keyStore.newAccount();
    List<KeyPair> accounts = keyStore.loadAccounts();
    KeyPair actualAccount1 = accounts.get(0);
    KeyPair actualAccount2 = accounts.get(1);
    assertEquals(String.valueOf(account1.getSecretSeed()), String.valueOf(actualAccount1.getSecretSeed()));
    assertEquals(String.valueOf(account2.getSecretSeed()), String.valueOf(actualAccount2.getSecretSeed()));
}