### Question:
CacheServiceController { @DeleteMapping(path = "") public void evictAll() { toEvict.forEach(ServiceCacheEvict::evictCacheAllService); discoveryClient.fetchRegistry(); }  @DeleteMapping(path = "") void evictAll(); @DeleteMapping(path = "/{serviceId}") void evict(@PathVariable("serviceId") String serviceId); static final String CONTROLLER_PATH; }### Answer:
@Test void testEvictAll() throws Exception { verify(service1, never()).evictCacheAllService(); verify(service2, never()).evictCacheAllService(); verify(discoveryClient, never()).fetchRegistry(); this.mockMvc.perform(delete("/gateway/cache/services")).andExpect(status().isOk()); verify(service1, times(1)).evictCacheAllService(); verify(service2, times(1)).evictCacheAllService(); verify(discoveryClient, times(1)).fetchRegistry(); }