@Test
public void listAccessTokensWithPageableTest() {

     PageableDTO pageableDTO = new PageableDTO();
     pageableDTO.setLimit(10);
     pageableDTO.setOffset(0);
     ArrayList<AccessToken> listTokens = new ArrayList<>();
     AccessToken token = new AccessToken();
     AccessTokenRequest accessTokenRequest = new AccessTokenRequest();
     listTokens.add(token);
     Page<AccessToken> page = new PageImpl<>(listTokens);
     Mockito.when(this.accessTokenRepository.findAll(Mockito.any(Example.class), Mockito.any(Pageable.class)))
            .thenReturn(page);
     AccessTokenPage planPageResp = this.service.list(accessTokenRequest, pageableDTO);
     assertEquals(1L, planPageResp.getTotalElements());
     Mockito.verify(this.accessTokenRepository, Mockito.times(1))
            .findAll(Mockito.any(Example.class), Mockito.any(Pageable.class));
}