    @Test
    public void testGetSwitcherService() throws IOException {

        SwitcherServer switcherServer = new SwitcherServer();
        SwitcherService switcherService = switcherServer.getSwitcherService();
        switcherService.register("key", Boolean.TRUE, "用于测试", QoS.API);
        if (switcherService.isOpen("key")) {
            System.out.println("key open status");
        } else {
            System.out.println("key closed status");
        }
        switcherService.set("key", Boolean.FALSE);
        switcherServer.close();
    }