@Secured(resource = "naming/switches", action = ActionTypes.WRITE)
    @PutMapping("/switches")
    public String updateSwitch(@RequestParam(required = false) boolean debug, @RequestParam String entry,
            @RequestParam String value) throws Exception {
        
        switchManager.update(entry, value, debug);
        
        return "ok";
    }
@Test
    void testUpdateSwitch() {
        try {
            String res = operatorController.updateSwitch(true, "test", "test");
            assertEquals("ok", res);
        } catch (Exception e) {
            e.printStackTrace();
            fail(e.getMessage());
        }
    }