ProviderService { public void delete(Long id) { this.providerRepository.delete(id); }  Provider save(ProviderDTO providerPersist); @Transactional Provider edit(Long idProvider, ProviderDTO providerEdit); ProviderPage listWithPageableAndFilter(ProviderDTO providerDTO, PageableDTO pageableDTO); List<Provider> listWithFilter(ProviderDTO providerDTO); Provider findOne(Long id); void delete(Long id);  }
@Test public void testDelete() { this.providerService.delete(1L); Mockito.verify(this.providerRepository, Mockito.times(1)).delete(1L); }