@Test
public void testUnlock() throws Exception {

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