@Test
public void testSendTxByAddress() throws Exception {

  // given
  final TransactionTemplate transactionTemplate = new TransactionTemplate(contextStorage);
  final Requester mockRequester = mock(Requester.class);
  final TxHash expected = TxHash.of(BytesValue.EMPTY);
  when(mockRequester.request(ArgumentMatchers.<Invocation<?>>any()))
      .thenReturn(expected);
  transactionTemplate.requester = mockRequester;
  // then
  final TxHash actual = transactionTemplate
      .sendTx(anySigner, anyAccountAddress, anyAmount, anyNonce, anyFee, anyPayload);
  assertEquals(expected, actual);
}