@Test
public void testVoteTx() throws Exception {

  // given
  final AccountTemplate accountTemplate = new AccountTemplate(contextStorage);
  final Requester mockRequester = mock(Requester.class);
  final TxHash expected = TxHash.of(BytesValue.EMPTY);
  when(mockRequester.request(ArgumentMatchers.<Invocation<?>>any()))
      .thenReturn(expected);
  accountTemplate.requester = mockRequester;
  // then
  assertEquals(expected, accountTemplate
      .voteTx(anySigner, anyVoteId, anyCandidates, anyNonce));
  assertEquals(expected, accountTemplate
      .vote(anySigner, anyVoteId, anyCandidates, anyNonce));
}