@Test
    public void from() throws Exception {
        ProviderConfig providerConfig = new ProviderConfig().setBootstrap("test");
        ProviderBootstrap bootstrap = Bootstraps.from(providerConfig);
        Assert.assertEquals(TestProviderBootstrap.class, bootstrap.getClass());
        Assert.assertEquals(providerConfig, bootstrap.getProviderConfig());
        // if not set bootstrap
        providerConfig = new ProviderConfig();
        bootstrap = Bootstraps.from(providerConfig);
        Assert.assertEquals(TestProviderBootstrap.class, bootstrap.getClass());
        Assert.assertEquals(providerConfig, bootstrap.getProviderConfig());
    }
@author <a href="mailto:zhanggeng.zg@antfin.com">GengZhang</a>
core/api/src/test/java/com/alipay/sofa/rpc/bootstrap/BootstrapsTest.java