@After
    public void tearDown() {
        registry.destroy();
        registry = null;

        if (consumer1 != null) {
            consumer1.unRefer();
        }
        if (consumer2 != null) {
            consumer2.unRefer();
        }
        if (serverConfig1 != null) {
            serverConfig1.destroy();
        }
        if (serverConfig2 != null) {
            serverConfig2.destroy();
        }
        if (provider != null) {
            provider.unExport();
        }
    }
Created by zhanggeng on 2017/7/14.

@author <a href="mailto:zhanggeng.zg@antfin.com">zhanggeng</a>
registry/registry-sofa/src/test/java/com/alipay/sofa/rpc/registry/sofa/SofaRegistryTest.java