### Question:
KinAccountImpl extends AbstractKinAccount { @NonNull @Override public Balance getBalanceSync() throws OperationFailedException { checkValidAccount(); return accountInfoRetriever.getBalance(account.getAccountId()); } KinAccountImpl(KeyPair account, BackupRestore backupRestore, TransactionSender transactionSender,
        AccountActivator accountActivator,
        AccountInfoRetriever accountInfoRetriever, BlockchainEventsCreator blockchainEventsCreator); @Override String getPublicAddress(); @NonNull @Override TransactionId sendTransactionSync(@NonNull String publicAddress, @NonNull BigDecimal amount); @NonNull @Override TransactionId sendTransactionSync(@NonNull String publicAddress, @NonNull BigDecimal amount,
        @Nullable String memo); @NonNull @Override TransactionId sendBurnAccountTransactionSync(@NonNull String publicAddress); @Override boolean isAccountBurnedSync(); @NonNull @Override Balance getBalanceSync(); @Override void activateSync(); @Override int getStatusSync(); @Override BlockchainEvents blockchainEvents(); @Override String export(@NonNull String passphrase);  }### Answer:
@Test public void getBalanceSync() throws Exception { initWithRandomAccount(); Balance expectedBalance = new BalanceImpl(new BigDecimal("11.0")); when(mockAccountInfoRetriever.getBalance(anyString())).thenReturn(expectedBalance); Balance balance = kinAccount.getBalanceSync(); assertEquals(expectedBalance, balance); verify(mockAccountInfoRetriever).getBalance(expectedRandomAccount.getAccountId()); }