@Test
public void sendTransactionSync() throws Exception {

    initWithRandomAccount();
    String expectedAccountId = "GDKJAMCTGZGD6KM7RBEII6QUYAHQQUGERXKM3ESHBX2UUNTNAVNB3OGX";
    BigDecimal expectedAmount = new BigDecimal("12.2");
    TransactionId expectedTransactionId = new TransactionIdImpl("myId");
    when(mockTransactionSender.sendTransaction((Transaction) any())).thenReturn(expectedTransactionId);
    Transaction transaction = kinAccount.buildTransactionSync(expectedAccountId, expectedAmount, 100);
    TransactionId transactionId = kinAccount.sendTransactionSync(transaction);
    verify(mockTransactionSender).sendTransaction(transaction);
    assertEquals(expectedTransactionId, transactionId);
}