    @Test
    public void testDoGet() throws Exception {

        Server server = Help.getServer(LogLevelServlet.class);
        server.start();
        try {
            String[] levels = {"DEBUG", "INFO", "WARN", "WARNING", "ERROR", "FATAL"};
            for (String level : levels) {
                String url = String.format("http://127.0.0.1:%d/admin/log?level=%s", Help.PORT, level);
                Help.Res r = Help.sendPut(url, "");
                assertEquals(200, r.getCode());
                r = Help.doGet(String.format("http://127.0.0.1:%d/admin/log", Help.PORT));
                assertEquals(200, r.getCode());
                JSONObject jo = new JSONObject(r.getText());
                assertEquals(jo.optString("level"), "WARNING".equals(level)?"WARN":level);
            }
        } finally {
            server.stop();
        }
    }