@Test
public void test_call() throws Exception {

    ArgumentCaptor<User> user = forClass(User.class);
    when(apiKeyRepository.get(User.local())).thenReturn(new DatashareApiKey(User.local()));
    assertThat(new GetApiKeyTask(apiKeyRepository, User.local()).call()).isNotNull();
    verify(apiKeyRepository).get(user.capture());
    assertThat(user.getValue()).isEqualTo(User.local());
}