@Test
public void testListElected() throws Exception {

  // given
  final AccountTemplate accountTemplate = new AccountTemplate(contextStorage);
  final Requester mockRequester = mock(Requester.class);
  final List<ElectedCandidate> expected = emptyList();
  when(mockRequester.request(ArgumentMatchers.<Invocation<?>>any()))
      .thenReturn(expected);
  accountTemplate.requester = mockRequester;
  // then
  final List<ElectedCandidate> actual = accountTemplate.listElected(anyVoteId, 20);
  assertEquals(expected, actual);
}