### Question:
ConfigManager { public static synchronized LocalConfig getConfig(String name) { SeLionLogger.getLogger().entering(name); checkArgument(StringUtils.isNotBlank(name), "The test name for which configuration is being retrieved cannot be null (or) empty."); LocalConfig localConfiguration = configsMap.get(name); if (localConfiguration == null) { throw new IllegalArgumentException( "A local configuration with specified name was not found. Please double check the <test> name and retry."); } SeLionLogger.getLogger().exiting(localConfiguration); return localConfiguration; } private  ConfigManager(); static synchronized void addConfig(String name, LocalConfig config); static synchronized LocalConfig getConfig(String name); static synchronized boolean removeConfig(String name); static synchronized void printConfiguration(String testName); static synchronized boolean isTestConfigPresent(String testName);  }### Answer:
@Test(groups = { "unit" }, dependsOnMethods = { "testAddConfig" }) public void testGetConfig() { assertNotNull(localConfig, "Could not get the SeLion local config"); LocalConfig testConfig = ConfigManager.getConfig(TEST_CONFIG_NAME); assertNotNull(testConfig); String newBrowserValue = testConfig.getConfigProperty(ConfigProperty.BROWSER); assertTrue(newBrowserValue.equals(browserValue), "value from local config is not equal to the value set"); }
@Test(groups = { "unit" }, dependsOnMethods = { "testAddConfig" }) public void testGetConfigProperty(ITestContext ctx) { String name = ctx.getCurrentXmlTest().getName(); String browser = ConfigManager.getConfig(name).getConfigProperty(ConfigProperty.BROWSER); assertNotNull(browser); }