### Question:
KinClient { @SuppressWarnings("WeakerAccess") public int getAccountCount() { return kinAccounts.size(); } 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 getAccountCount() throws Exception { KeyPair account1 = createRandomAccount(); KeyPair account2 = createRandomAccount(); KeyPair account3 = createRandomAccount(); fakeKeyStore = new FakeKeyStore(Arrays.asList(account1, account2, account3)); kinClient = createNewKinClient(); assertThat(kinClient.getAccountCount(), equalTo(3)); kinClient.deleteAccount(2); kinClient.deleteAccount(1); assertThat(kinClient.getAccountCount(), equalTo(1)); kinClient.addAccount(); assertThat(kinClient.getAccountCount(), equalTo(2)); kinClient.deleteAccount(1); kinClient.deleteAccount(0); assertThat(kinClient.getAccountCount(), equalTo(0)); }