### Question:
AccessesController { @RequestMapping(value = "/{id}", method = RequestMethod.DELETE) public void deleteAccess(@PathVariable String id, @PathVariable String env) { id = id.replace(Constants.ANY_VALUE, Constants.PATH_SEPARATOR); routeService.deleteAccess(id); } @Autowired  AccessesController(RouteService routeService, ProviderService providerService); @RequestMapping(method = RequestMethod.GET) List<AccessDTO> searchAccess(@RequestParam(required = false) String service,
                                        @RequestParam(required = false) String application,
                                        @PathVariable String env); @RequestMapping(value = "/{id}", method = RequestMethod.GET) AccessDTO detailAccess(@PathVariable String id, @PathVariable String env); @RequestMapping(value = "/{id}", method = RequestMethod.DELETE) void deleteAccess(@PathVariable String id, @PathVariable String env); @RequestMapping(method = RequestMethod.POST) @ResponseStatus(HttpStatus.CREATED) void createAccess(@RequestBody AccessDTO accessDTO, @PathVariable String env); @RequestMapping(value = "/{id}", method = RequestMethod.PUT) void updateAccess(@PathVariable String id, @RequestBody AccessDTO accessDTO, @PathVariable String env);  }### Answer:
@Test public void deleteAccess() { String id = "1"; restTemplate.delete(url("/api/{env}/rules/access/{id}"), env, id); verify(routeService).deleteAccess(id); }