@Test
public void deleteAccount() throws Exception {

    KeyStoreImpl keyStore = new KeyStoreImpl(new FakeStore(), new FakeBackupRestore());
    KeyPair account1 = keyStore.newAccount();
    KeyPair keyPair = keyStore.newAccount();
    keyStore.deleteAccount(keyPair.getAccountId());
    List<KeyPair> accounts = keyStore.loadAccounts();
    assertEquals(1, accounts.size());
    assertEquals(String.valueOf(account1.getSecretSeed()), String.valueOf(accounts.get(0).getSecretSeed()));
}