RpcRunningState { public static void setDebugMode(boolean debugMode) { RpcRunningState.debugMode = debugMode; }  static boolean isShuttingDown(); static boolean isUnitTestMode(); static void setUnitTestMode(boolean unitTestMode); static boolean isDebugMode(); static void setDebugMode(boolean 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); } }