### Question:
LoadBalanceController { @RequestMapping(value = "/{id}", method = RequestMethod.DELETE) public boolean deleteLoadBalance(@PathVariable String id, @PathVariable String env) { if (id == null) { throw new IllegalArgumentException("Argument of id is null!"); } id = id.replace(Constants.ANY_VALUE, Constants.PATH_SEPARATOR); overrideService.deleteBalance(id); return true; } @Autowired  LoadBalanceController(OverrideService overrideService, ProviderService providerService); @RequestMapping(method = RequestMethod.POST) @ResponseStatus(HttpStatus.CREATED) boolean createLoadbalance(@RequestBody BalancingDTO balancingDTO, @PathVariable String env); @RequestMapping(value = "/{id}", method = RequestMethod.PUT) boolean updateLoadbalance(@PathVariable String id, @RequestBody BalancingDTO balancingDTO, @PathVariable String env); @RequestMapping(method = RequestMethod.GET) List<BalancingDTO> searchLoadbalances(@RequestParam(required = false) String service,
                                                 @RequestParam(required = false) String application,
                                                 @PathVariable String env); @RequestMapping(value = "/{id}", method = RequestMethod.GET) BalancingDTO detailLoadBalance(@PathVariable String id, @PathVariable String env); @RequestMapping(value = "/{id}", method = RequestMethod.DELETE) boolean deleteLoadBalance(@PathVariable String id, @PathVariable String env);  }### Answer:
@Test public void deleteLoadBalance() { String id = "1"; URI uri; ResponseEntity<String> response; response = restTemplate.exchange(url("/api/{env}/rules/balancing/{id}"), HttpMethod.DELETE, new HttpEntity<>(null), String.class, env, id); assertEquals(HttpStatus.OK, response.getStatusCode()); assertTrue(Boolean.valueOf(response.getBody())); }