@Test
public void testGetVotesOf() throws Exception {

  // given
  final AccountTemplate accountTemplate = new AccountTemplate(contextStorage);
  final Requester mockRequester = mock(Requester.class);
  final AccountTotalVote expected = AccountTotalVote.newBuilder().build();
  when(mockRequester.request(ArgumentMatchers.<Invocation<?>>any()))
      .thenReturn(expected);
  accountTemplate.requester = mockRequester;
  // then
  final AccountTotalVote actual = accountTemplate.getVotesOf(anyAccountAddress);
  assertEquals(expected, actual);
}