}
@Test
public void testConfigHelperLoadConfig() throws Exception {
// Setup
Config testConfig = TestConfigUtil.createTestLocalConfig();
// Run
Config loadedConfig = ConfigHelper.loadConfig(testConfig.getLocalDir());
// Test
assertNotNull(loadedConfig);
assertEquals(testConfig.getAppDir(), loadedConfig.getAppDir());
assertEquals(testConfig.getCacheDir(), loadedConfig.getCacheDir());
assertNotNull(loadedConfig.getChunker());
assertEquals(testConfig.getChunker().toString(), loadedConfig.getChunker().toString());
assertNotNull(loadedConfig.getCache());
assertNotNull(loadedConfig.getConnection());
assertEquals(testConfig.getDatabaseDir(), loadedConfig.getDatabaseDir());
assertEquals(testConfig.getDatabaseFile(), loadedConfig.getDatabaseFile());
assertEquals(testConfig.getDisplayName(), loadedConfig.getDisplayName());
assertEquals(testConfig.getLocalDir(), loadedConfig.getLocalDir());
assertEquals(testConfig.getLogDir(), loadedConfig.getLogDir());
assertEquals(testConfig.getMachineName(), loadedConfig.getMachineName());
assertEquals(testConfig.getMasterKey(), loadedConfig.getMasterKey());
assertNotNull(loadedConfig.getMultiChunker());
assertNotNull(loadedConfig.getRepoId());
assertNotNull(loadedConfig.getTransformer());
// Tear down
TestConfigUtil.deleteTestLocalConfigAndData(testConfig);
}