@Test
    public void getName() throws Exception {
        ProviderGroup pg = new ProviderGroup(null, null);
        Assert.assertNull(pg.getName());

        pg = new ProviderGroup("xxx");
        Assert.assertEquals(pg.getName(), "xxx");

        pg = new ProviderGroup("xxx", null);
        Assert.assertEquals(pg.getName(), "xxx");
    }
@author <a href="mailto:zhanggeng.zg@antfin.com">GengZhang</a>
core/api/src/test/java/com/alipay/sofa/rpc/client/ProviderGroupTest.java