ProviderGroup { public String getName() { return name; } ProviderGroup();  ProviderGroup(String name);  ProviderGroup(String name, List<ProviderInfo> providerInfos);  ProviderGroup(List<ProviderInfo> providerInfos); String getName(); List<ProviderInfo> getProviderInfos(); void setProviderInfos(List<ProviderInfo> providerInfos); boolean isEmpty(); int size(); ProviderGroup add(ProviderInfo providerInfo); ProviderGroup addAll(Collection<ProviderInfo> providerInfos); ProviderGroup remove(ProviderInfo providerInfo); ProviderGroup removeAll(List<ProviderInfo> providerInfos); @Override String toString();  }
@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"); }