@SuppressWarnings("unchecked")
@Test
public void testListWithPageableAndFilter() {

	PageableDTO pageableDTO = new PageableDTO();
	pageableDTO.setLimit(10);
	pageableDTO.setOffset(0);
	ArrayList<Provider> listProviders = new ArrayList<>();
	this.providerDatabase.setName("Provider Authentication");
	listProviders.add(providerDatabase);
	Page<Provider> page = new PageImpl<>(listProviders);
	Mockito.when(this.providerRepository.findAll(Mockito.any(Example.class), Mockito.any(Pageable.class))).thenReturn(page);
	ProviderPage providerPageResp = this.providerService.listWithPageableAndFilter(this.providerDTO, pageableDTO);
	assertEquals(1L, providerPageResp.getTotalElements());
	Mockito.verify(this.providerRepository, Mockito.times(1)).findAll(Mockito.any(Example.class), Mockito.any(Pageable.class));
}