@Test
public void testImportKey() throws Exception {

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