DetectorController { @DeleteMapping @ResponseStatus(HttpStatus.OK) public void deleteDetector(@RequestParam String uuid) { service.deleteDetector(uuid); }  @PostMapping @ResponseStatus(HttpStatus.CREATED) String createDetector(@Valid @RequestBody Detector detector, @RequestHeader HttpHeaders headers); @GetMapping(path = "/findByUuid", produces = "application/json") @ResponseStatus(HttpStatus.OK) Detector findByUuid(@RequestParam String uuid, @RequestHeader HttpHeaders headers); @GetMapping(path = "/findByCreatedBy", produces = "application/json") @ResponseStatus(HttpStatus.OK) List<Detector> findByCreatedBy(@RequestParam String user); @PostMapping(path = "/toggleDetector") @ResponseStatus(HttpStatus.OK) void toggleDetector(@RequestParam String uuid, @RequestParam Boolean enabled); @PostMapping(path = "/trustDetector") @ResponseStatus(HttpStatus.OK) void trustDetector(@RequestParam String uuid, @RequestParam Boolean trusted); @GetMapping(path = "/getLastUpdatedDetectors", produces = "application/json") @ResponseStatus(HttpStatus.OK) List<Detector> getLastUpdatedDetectors(@RequestParam long interval); @GetMapping(path = "/getLastUsedDetectors", produces = "application/json") @ResponseStatus(HttpStatus.OK) List<Detector> getLastUsedDetectors(@RequestParam int noOfDays); @PutMapping @ResponseStatus(HttpStatus.OK) void updateDetector(@RequestParam String uuid, @RequestBody Detector detector); @PostMapping(path = "/updateDetectorLastUsed", consumes = "application/json", produces = "application/json") @ResponseStatus(HttpStatus.OK) void updatedDetectorLastUsed(@RequestBody Map<String, String> params); @DeleteMapping @ResponseStatus(HttpStatus.OK) void deleteDetector(@RequestParam String uuid); @GetMapping(path = "/getDetectorsToTrain", produces = "application/json") @ResponseStatus(HttpStatus.OK) List<Detector> getDetectorsToTrain(@RequestParam Long timestampMs, @RequestHeader HttpHeaders headers); @PostMapping(path = "/updateDetectorTrainingTime") void updateDetectorTrainingTime(@RequestParam String uuid,
                                           @RequestParam Long nextRun,
                                           @RequestHeader HttpHeaders headers);  }
@Test public void testDeleteDetector() { val someUuidStr = someUuid.toString(); controllerUnderTest.deleteDetector(someUuidStr); verify(detectorService, times(1)).deleteDetector(someUuidStr); }