@Test
public void listAccessTokensTest() {

     AccessToken token = new AccessToken();
     AccessTokenRequest accessTokenRequest = new AccessTokenRequest();
     List<AccessToken> tokens = new ArrayList<>();
     tokens.add(token);
     Mockito.when(this.accessTokenRepository.findAll(Mockito.any(Example.class))).thenReturn(tokens);
     List<AccessToken> tokensResp = this.service.list(accessTokenRequest);
     assertEquals(tokens.size(), tokensResp.size());
     Mockito.verify(this.accessTokenRepository, Mockito.times(1)).findAll(Mockito.any(Example.class));
}