### Question:
CollectdConfigFactory { public CollectdPackage getPackage(String name) { return m_collectdConfig.getPackage(name); } private  CollectdConfigFactory(String configFile, String localServer, boolean verifyServer);  CollectdConfigFactory(InputStream stream, String localServer, boolean verifyServer); synchronized void rebuildPackageIpListMap(); static synchronized void init(); static synchronized void reload(); synchronized void saveCurrent(); static synchronized CollectdConfigFactory getInstance(); static synchronized void setInstance(CollectdConfigFactory instance); CollectdConfig getCollectdConfig(); CollectdPackage getPackage(String name); synchronized boolean packageExists(String name); boolean domainExists(String name); boolean isServiceCollectionEnabled(final String ipAddr, final String svcName);  }### Answer:
@Test public void testGetName() { String pkgName = "example1"; CollectdPackage wpkg = m_factory.getPackage(pkgName); assertNotNull(wpkg); assertEquals(pkgName, wpkg.getName()); }