### Question:
KinClient { public void deleteAccount(int index) throws DeleteAccountException { if (index >= 0 && getAccountCount() > index) { keyStore.deleteAccount(index); KinAccountImpl removedAccount = kinAccounts.remove(index); removedAccount.markAsDeleted(); } } KinClient(@NonNull Context context, @NonNull ServiceProvider provider, @NonNull String storeKey);  KinClient(@NonNull Context context, @NonNull ServiceProvider provider); @VisibleForTesting  KinClient(ServiceProvider serviceProvider, KeyStore keyStore, TransactionSender transactionSender,
        AccountActivator accountActivator, AccountInfoRetriever accountInfoRetriever,
        BlockchainEventsCreator blockchainEventsCreator, BackupRestore backupRestore); @NonNull KinAccount addAccount(); @NonNull KinAccount importAccount(@NonNull String exportedJson, @NonNull String passphrase); KinAccount getAccount(int index); boolean hasAccount(); @SuppressWarnings("WeakerAccess") int getAccountCount(); void deleteAccount(int index); @SuppressWarnings("WeakerAccess") void clearAllAccounts(); ServiceProvider getServiceProvider();  }### Answer:
@Test public void deleteAccount() throws Exception { createKeyStoreWithRandomAccount(); assertTrue(kinClient.hasAccount()); kinClient.deleteAccount(0); assertFalse(kinClient.hasAccount()); }