@Test
public void testExecuteTx() throws Exception {

  // given
  final ContractTemplate contractTemplate = new ContractTemplate(contextStorage);
  final Requester mockRequester = mock(Requester.class);
  final ContractTxHash expected = ContractTxHash.of(BytesValue.EMPTY);
  when(mockRequester.request(ArgumentMatchers.<Invocation<?>>any()))
      .thenReturn(expected);
  contractTemplate.requester = mockRequester;
  // then
  final Account deprecatedOne = new AccountFactory().create(new AergoKeyGenerator().create());
  assertEquals(expected, contractTemplate.execute(deprecatedOne, anyInvocation, anyNonce));
  assertEquals(expected,
      contractTemplate.execute(deprecatedOne, anyInvocation, anyNonce, anyFee));
  assertEquals(expected, contractTemplate.execute(anySigner, anyInvocation, anyNonce, anyFee));
  assertEquals(expected, contractTemplate.executeTx(anySigner, anyInvocation, anyNonce, anyFee));
}