@Test
public void testList() throws Exception {

  // given
  final KeyStoreTemplate keystoreTemplate = new KeyStoreTemplate(contextStorage);
  final Requester mockRequester = mock(Requester.class);
  final List<AccountAddress> expected = emptyList();
  when(mockRequester.request(ArgumentMatchers.<Invocation<?>>any()))
      .thenReturn(expected);
  keystoreTemplate.requester = mockRequester;
  // then
  final List<AccountAddress> actual = keystoreTemplate.list();
  assertEquals(expected, actual);
}