KinAccountImpl extends AbstractKinAccount { @Override public String getPublicAddress() { if (!isDeleted) { return account.getAccountId(); } return null; } KinAccountImpl(KeyPair account, BackupRestore backupRestore, TransactionSender transactionSender,
                   AccountInfoRetriever accountInfoRetriever, BlockchainEventsCreator blockchainEventsCreator); @Override String getPublicAddress(); @Override Transaction buildTransactionSync(@NonNull String publicAddress, @NonNull BigDecimal amount,
                                            int fee); @Override Transaction buildTransactionSync(@NonNull String publicAddress, @NonNull BigDecimal amount,
                                            int fee, @Nullable String memo); @NonNull @Override TransactionId sendTransactionSync(Transaction transaction); @NonNull @Override TransactionId sendWhitelistTransactionSync(String whitelist); @NonNull @Override Balance getBalanceSync(); @Override int getStatusSync(); @Override ListenerRegistration addBalanceListener(@NonNull EventListener<Balance> listener); @Override ListenerRegistration addPaymentListener(@NonNull EventListener<PaymentInfo> listener); @Override ListenerRegistration addAccountCreationListener(EventListener<Void> listener); @Override String export(@NonNull String passphrase);  }
@Test public void getPublicAddress_ExistingAccount() throws Exception { initWithRandomAccount(); assertEquals(expectedRandomAccount.getAccountId(), kinAccount.getPublicAddress()); }