@Test
    public void setUnitTestMode() throws Exception {
        boolean old = RpcRunningState.isUnitTestMode();
        try {
            RpcRunningState.setUnitTestMode(true);
            Assert.assertTrue(RpcRunningState.isUnitTestMode());
            RpcRunningState.setUnitTestMode(false);
            Assert.assertFalse(RpcRunningState.isUnitTestMode());
        } finally {
            RpcRunningState.setUnitTestMode(old);
        }
    }
@author <a href="mailto:zhanggeng.zg@antfin.com">GengZhang</a>
core/api/src/test/java/com/alipay/sofa/rpc/context/RpcRunningStateTest.java