public static void setDebugMode(boolean debugMode) {
        RpcRunningState.debugMode = debugMode;
    }
@Test
    public void setDebugMode() throws Exception {
        boolean old = RpcRunningState.isDebugMode();
        try {
            RpcRunningState.setDebugMode(true);
            Assert.assertTrue(RpcRunningState.isDebugMode());
            RpcRunningState.setDebugMode(false);
            Assert.assertFalse(RpcRunningState.isDebugMode());
        } finally {
            RpcRunningState.setDebugMode(old);
        }
    }