@BeforeClass
    public static void before() {
        RpcRunningState.setUnitTestMode(true);
        OLD_VALUE_SHUTDOWN_WAIT_KEY = System.getProperty(CommonConstants.SHUTDOWN_WAIT_KEY);
        OLD_VALUE_DUBBO_CONFIG_IGNORE_DUPLICATED_INTERFACE = System
            .getProperty(ConfigKeys.DUBBO_CONFIG_IGNORE_DUPLICATED_INTERFACE);
        OLD_VALUE_DUBBO_CONFIG_MODE = System.getProperty(ConfigKeys.DUBBO_CONFIG_MODE);

        System.setProperty(CommonConstants.SHUTDOWN_WAIT_KEY, "1");
        System.setProperty(ConfigKeys.DUBBO_CONFIG_IGNORE_DUPLICATED_INTERFACE, "true");
        System.setProperty(ConfigKeys.DUBBO_CONFIG_MODE, ConfigMode.IGNORE.name());
    }
@author <a href=mailto:leizhiyuan@gmail.com>leizhiyuan</a>
bootstrap/bootstrap-dubbo/src/test/java/com/alipay/sofa/rpc/bootstrap/dubbo/DubooServerTest.java